-
Notifications
You must be signed in to change notification settings - Fork 879
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
escaping double asterisks and underscores #233
Comments
Thanks for this. I think it's related to #220 (escaping is hard!). I will mark this as a bug. Thanks again. |
Hi, I work on the same team as Areeba, and eventually we decided to use an escaping that would be quite aggressive as the markdown does not have to be really user friendly. We realised that we could overload the escape method in the prototype:
In this case, we have written a custom escaping method that takes care of most special characters in markdown:
I hope this helps. Best, |
Thanks @olih I think the "aggressive" approach to escaping by default is probably the right way to go, with the option of overriding the behaviour using the public Thanks again! |
Hi @domchristie We are happy to give the pull request a try next week if that works for you. Best |
Hi @domchristie, We have been working on putting a pull request together. Could you grant me write access to the repository? Thanks |
Are you able to fork to repo (to ayusaf1992/turndown)? |
done, thanks @domchristie |
Closed by #242 |
Hello,
I'm using your library to convert HTML to markdown. I am running into problems whenever there are double asterisks (**) next to/within
<strong>
tags or when text within<em>
tags includes an underscore (_). For example, when converting:the markdown returned is:
Is there any way to escape these characters during the conversion?
So the markdown returned is more like:
Thanks
The text was updated successfully, but these errors were encountered: