-
Notifications
You must be signed in to change notification settings - Fork 214
Closed
Description
I have a particular feature request within the directive-like syntax, for which here is an example.
The code below
:::main{#readme}
Lorem:br
ipsum.
::hr{.red}
A :i[lovely] language know as :abbr[HTML]{title="HyperText Markup Language"}.
:::may change to
<main id="readme">
<p>Lorem<br>ipsum.</p>
<hr class="red">
<p>A <i>lovely</i> language know as <abbr title="HyperText Markup Language">HTML</abbr>.</p>
</main>After being parsed and converted to HTML.
I'm asking for this because you know that Markdoc uses too many components and JS even when there is no need, like for a better image syntax in Markdoc you specifically need to create a component and link(maybe I'm not using the right word here) it to Markdoc.
Btw, I was inspired by remark-directive's code example. Though it's a code example but I think it's powerful for some really simple things.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels