Org mode separates kvs not as initially assumed by whitespace (~ csv) but rather at keywords (~ :\w+). This is still not replicating Org mode behaviour though as I decided against attributes ignoring multi-definitions. Instead we stack their values (and those existing on the element) for certain attributes (class, style for now). e.g. [[foo]] would become <foo class="a"> in Org mode but becomes <foo class="a b"> with go-org.
18 lines
584 B
HTML
18 lines
584 B
HTML
<figure>
|
|
<div class="highlight a b c d" id="it">
|
|
<pre>echo "a bash source block with custom html attributes"
|
|
</pre>
|
|
</div>
|
|
<figcaption>
|
|
and <span style="text-decoration: underline;">multiple</span> lines of <strong>captions</strong>!
|
|
</figcaption>
|
|
</figure>
|
|
<p>
|
|
and an image with custom html attributes and a caption
|
|
</p>
|
|
<figure>
|
|
<img src="https://placekitten.com/200/200#.png" alt="https://placekitten.com/200/200#.png" title="https://placekitten.com/200/200#.png" style="height: 100%; border: 10px solid black;" id="kittens"/>
|
|
<figcaption>
|
|
kittens!
|
|
</figcaption>
|
|
</figure>
|