-
Notifications
You must be signed in to change notification settings - Fork 876
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
Avoid escaping in <p>
#343
Comments
Not really similar. Although #340 mentions avoiding escaping, the solution is actually avoiding standard Turndown rules completely. Not only text escaping, but also HTML formatting inside a pre block should just be dropped, as it has no representation in MD and most likely it is just some generated syntax highlighting.
If you are building a source-level editor with inline formatting highlighting like https://stackedit.io/, then Turndown is not really a match. I guess you are building a mixed wysiwyg + source editor, which combines HTML formatting with user-entered Markdown syntax, correct? If that is the case, you can upvote PR #339, which would give you the ability to contextually change escaping behaviour. |
Hi, thanks for taking a look. Stackedit goes one way, Markdown to HTML, I want to allow for both ways, the user can edit the HTML element. So I guess what I mean is that I want to allow for Markdown to be entered inside the node text. |
Hello there,
My question is simuliar to #340
But I don't wish to escape the whole element, only parts of it.
I am building a graphical MD editor, users can select HTML elements with the
contentEditable
attribute` in the designer and type, what when a is then processed.The issue is that when a user types a list inside a paragraph, the list is escaped:
The user types:
The returned Markdown is:
Is there any way to change this behaviour?
Thanks
The text was updated successfully, but these errors were encountered: