-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Needless escapes in Markdown since 2.1.1 #66
Comments
Hi! This looks like a duplicate of #65! |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Thank you for pointing me to the related issue. The commit 97fb818 might be able to give the new minor version number
|
It depends on what you do, what I’d recommend. If you can generate spaces, I would indeed strongly recommend them. Note that I do not consider escaping things a breaking change; that markdown still renders the same, and the HTML output is still the same. That wasn’t the case before. That escape is not needed in some cases. But it is needed in other cases. This patch fixes actual bugs! |
Initial checklist
Affected packages and versions
mdast-util-to-markdown
Link to runnable example
No response
Steps to reproduce
Expected behavior
until mdast-util-to-markdown version 2.1.0, or commit df0d6a6, it works correctly.
toMarkdown(fromMarkdown(md))
runs the round trip from Markdown to Markdown.Actual behavior
since mdast-util-to-markdown version 2.1.1, or commit 97fb818, it made characters escaped needlessly just before and after both
*
and**
.toMarkdown(fromMarkdown(md))
cannot run the round trip from Markdown to Markdown.toHtml(toHast(fromMarkdown(md)))
still has no trouble on the other hand.It means version 2.1.1 has a breaking change. Version 2.1.2 has the same issue.
Thank you maintaining this anyway.
Affected runtime and version
[email protected]
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: