From 97cae3e5c6647d3273c65b60d3b14789d04d5faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20P=C3=A4per?= Date: Sun, 17 Mar 2019 19:35:55 +0100 Subject: [PATCH] syntax highlighting --- spec.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec.txt b/spec.txt index 91551e51..a15cfbb0 100644 --- a/spec.txt +++ b/spec.txt @@ -1617,6 +1617,9 @@ as inlines. The first word of the [info string] is typically used to specify the language of the code sample, and rendered in the `class` attribute of the `code` tag. However, this spec does not mandate any particular treatment of the [info string]. +That means, extensions may use the information, for instance, +to highlight the syntax with different colors +or to parse and evaluate the code, e.g. to create a diagram. Here is a simple example with backticks: