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

Option to turn HTML escaping off #529

Closed
adam-lynch opened this issue Dec 17, 2014 · 2 comments
Closed

Option to turn HTML escaping off #529

adam-lynch opened this issue Dec 17, 2014 · 2 comments

Comments

@adam-lynch
Copy link

I'd love this please.

My use case

I want to compile markdown for places where HTML isn't supported, just plain strings (like in Mac & Windows 8+ notifications for example).

I've already created a custom marked renderer which "cleans" markdown. So I try convert it to the nicest possible plaintext representation I can; i.e. it leaves some things pretty much as they are (like **strong**), it converts inline codespans to {code} (or {html} if code is passed), etc.

It works well but I just noticed that single quotes are being converted to '.

@adam-lynch
Copy link
Author

I've gotten around it for now using the innerHTML, innerText trick to unescape HTML. Still would be a nice setting though.

@joshbruce
Copy link
Member

#985

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