Raw Node Type #477
stellarpower
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm not consuming Comrak directly but using it through Commonmarker in ruby. I took a look at the node type enum before though and didn't see a clear candidate.
Is it possible to add a node to the document tree that's completely raw text, never to be escaped? If not, would it be possible to add this as a type, and then disallow the adding of children and under no circumstances perform any escaping or processing when rendering?
I'm taking content from a visual editor and performing some processing before handing it off to Zola to generate a static site. Zola makes use of shortcodes, which are in syntax a bit like jinja/liquid. Unfortuately these sections therefore aren't markdown, and comrak is being strictly-compliant and escaping the underscores in some URLs that are within quotes. So right now I think the only sane option I have is to insert some UUIDs and just string-replace after I have written the document back out, which is horrible, but safe at this point.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions