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

Disallow HTML blocks and spans? #20

Closed
choldgraf opened this issue Feb 13, 2020 · 2 comments
Closed

Disallow HTML blocks and spans? #20

choldgraf opened this issue Feb 13, 2020 · 2 comments

Comments

@choldgraf
Copy link
Member

Since we have directives and roles that could make HTML at a block or in-line level explicit (rather than detected with regexes and such), what do folks think about explicitly not allowing raw HTML in the myst content, and instead asking people to use a directive or role if they want to embed HTML in their page?

@chrisjsewell
Copy link
Member

To be compliant with CommonMark, it has to at least detect it anyway, even if it is later ignored. So I don’t see much benefit in disallowing it, although obviously it should be discouraged.

@choldgraf
Copy link
Member Author

choldgraf commented Feb 13, 2020

Yeah - I had the same thought re: breaking spec w/ CommonMark. I think it's a good idea to explicitly discourage it in the docs. I'll add that in a little PR

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