1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
A "raw attribute" is an `=` plus an alphanumeric string, in
braces, like
{=html5}
If attached to an inline code span, it causes the span to be
interpreted as raw inline content with the specified format.
If attached to a fenced code block, it causes the block to
be interpreted as raw block content with the specified format.
A raw attribute may not occur together with other attributes.
```````````````````````````````` example
``` {=html}
<b>foo</b>
```
.
<b>foo</b>
````````````````````````````````
```````````````````````````````` example
`<b>foo</b>`{=html}
.
<p><b>foo</b></p>
````````````````````````````````
You can't mix regular and raw attributes:
```````````````````````````````` example
``` {=html #id}
<b>foo</b>
.
<pre><code class="language-{=html"><b>foo</b>
</code></pre>
````````````````````````````````
```````````````````````````````` example
`<b>foo</b>`{=html .bar}
.
<p><code><b>foo</b></code>{=html .bar}</p>
````````````````````````````````
|