Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1001 Bytes

raw_attribute.md

File metadata and controls

41 lines (33 loc) · 1001 Bytes

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.

``` {=html}
<b>foo</b>
```
.
<b>foo</b>
`<b>foo</b>`{=html}
.
<p><b>foo</b></p>

You can't mix regular and raw attributes:

``` {=html #id}
<b>foo</b>
.
<pre><code class="language-{=html">&lt;b&gt;foo&lt;/b&gt;
</code></pre>
`<b>foo</b>`{=html .bar}
.
<p><code>&lt;b&gt;foo&lt;/b&gt;</code>{=html .bar}</p>