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

Strange behaviour with html comments. indended? #114

Open
SVMBrown opened this issue Dec 12, 2016 · 2 comments
Open

Strange behaviour with html comments. indended? #114

SVMBrown opened this issue Dec 12, 2016 · 2 comments

Comments

@SVMBrown
Copy link

<!-- some comment --> emits <!--&ndash; some comment &ndash; -->, <!- some comment -> emits <!--- some comment ---> and <! some comment > emits <!-- some comment -->. Is this intended behaviour? If so, why?

The reason I ask is because of my confusion using a downstream library (see: cryogen-project/cryogen-core#76 )

@yogthos
Copy link
Owner

yogthos commented Dec 13, 2016

The library doesn't currently understand the <!-- --> syntax, so it ends up being parsed as markdown. The easiest fix would likely be to filter out any HTML comments using a regex.

@lacarmen
Copy link

lacarmen commented May 1, 2018

Update:
<!-more-> stays as <!-more-> but
<!--more--> becomes <!&ndash;more&ndash;>

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

No branches or pull requests

3 participants