Element wrapper for the asciidoctor.js library.
<asciidoctor-element>
accepts AsciiDoc source either via its asciidoc
attribute:
<asciidoctor-element asciidoc="`AsciiDoc` is _awesome_!"></asciidoctor-element>
Or, you can provide it via a <script type="text/asciidoc">
element child:
<asciidoctor-element>
<script type="text/asciidoc">
Check out my asciidoc!
We can even embed elements without fear of the HTML parser mucking up their
textual representation:
<awesome-sauce>
<div>Oops, I'm about to forget to close this div.
</awesome-sauce>
</script>
</asciidoctor-element>
Note that the <script type="text/asciidoc">
approach is static. Changes to
the script content will not update the rendered asciidoc!