File: raw_attribute.md

package info (click to toggle)
haskell-commonmark-extensions 0.2.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 368 kB
  • sloc: haskell: 2,574; makefile: 9
file content (41 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (2)
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">&lt;b&gt;foo&lt;/b&gt;
</code></pre>
````````````````````````````````

```````````````````````````````` example
`<b>foo</b>`{=html .bar}
.
<p><code>&lt;b&gt;foo&lt;/b&gt;</code>{=html .bar}</p>
````````````````````````````````