-
Notifications
You must be signed in to change notification settings - Fork 0
Markdown
Paul Mansour edited this page Apr 14, 2023
·
3 revisions
The MD2DOM
function converts markdown (as a vector of vectors) to an array of HTML objects:
m← '# My Title' '' 'A paragraph' 'with code:`{⍋⍋⍵}`'
d←A.MD2DOM m
d
#.Abacus.Main.[Namespace] #.Abacus.Main.[Namespace]
⍴¨m d
4 2
These HTML objects may then be added as content to another HTML object:
a←A.New 'article' d
A.DOM2HTML a
<article>
<h1>My Title</h1>
<p>
A paragraph with code:
<code>{⍋⍋⍵}</code>
</p>
</article>