diff --git a/doc/syntax.html b/doc/syntax.html index b1a2e96..e114d6c 100644 --- a/doc/syntax.html +++ b/doc/syntax.html @@ -901,6 +901,45 @@

Inline attributes

+

To attach attributes to a list item, the curly braces must immediately +follow the list marker:

+
+
+
+{.blue} A blue list item.
+(a){.bar} Ordered list item with an attribute.
+
+
+
<ul>
+<li class="blue">
+A blue list item.
+</li>
+</ul>
+<ol type="a">
+<li class="bar">
+Ordered list item with an attribute.
+</li>
+</ol>
+
+
+
+

Conversely, in the following, the attributes are attached to the block +quote:

+
+
+
+ {.blue}
+  > A blue quote.
+
+
+
<ul>
+<li>
+<blockquote class="blue">
+A blue quote.
+</blockquote>
+</li>
+</ul>
+
+
+
diff --git a/doc/syntax.md b/doc/syntax.md index 945cfdc..a5262b8 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -346,6 +346,18 @@ is the same as avant{lang=fr .blue} +To attach attributes to a list item, the curly braces must immediately +follow the list marker: + + +{.blue} A blue list item. + (a){.bar} Ordered list item with an attribute. + +Conversely, in the following, the attributes are attached to the block +quote: + + + {.blue} + > A blue quote. + ## Block syntax As in commonmark, block structure can be discerned prior to inline