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

Expose escaping/unescaping html as an option/utility #764

Closed
wheresrhys opened this issue Jun 28, 2016 · 4 comments
Closed

Expose escaping/unescaping html as an option/utility #764

wheresrhys opened this issue Jun 28, 2016 · 4 comments

Comments

@wheresrhys
Copy link

I'm using markdown as the authoring syntax for a cli tool - I'm able to hook in to the renderer to replace html tags with calls to chalk.

The one place I'm not able to decouple markdown from html is escaped characters being converted into html entities. Would you accept a PR to enable turning off html escaping via an option?

@adam-lynch
Copy link

Duplicate of #529

@mharward
Copy link

mharward commented Jul 3, 2016

This would be excellent and a problem we have also run into (in a slightly different context).

@amasad
Copy link

amasad commented Jan 8, 2017

I've worked around this by using lodash's unescape

const renderer = new marked.Renderer();

// Pass html unescaped
renderer.html = str => _.unescape(str);

@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

5 participants