Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CDATA #208

Closed
clucauth opened this issue Jan 10, 2020 · 1 comment
Closed

Support for CDATA #208

clucauth opened this issue Jan 10, 2020 · 1 comment

Comments

@clucauth
Copy link

clucauth commented Jan 10, 2020

It'll be nice if the library supports CDATA block. I put a block of code to render like this:

<pre><code>
<h1>Title</h1>
...
</code></pre>

Right now, the h1 tag needs to be escaped as &lt;h1&gt; A CDATA block will make putting longer block of code less tedious.

@erickok
Copy link
Collaborator

erickok commented Feb 8, 2021

Is this something that is part of the html standard? I can see practical use-cases, sure, but I find "Note that CDATA sections should not be used within HTML; they only work in XML." (ref: https://developer.mozilla.org/en-US/docs/Web/API/CDATASection#specifications)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants