You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is intentional escaping or a bug.
I have a string of Markdown, and I want to convert it to plain text. With the current behavior, I will end up displaying backslashes that were not in the original text.
Runtime
Node v16
Package manager
yarn 2
OS
macOS
Build and bundle tools
Other (please specify in steps to reproduce)
The text was updated successfully, but these errors were encountered:
In this case the escaped output is fine, it doesn't matter if it is escaped, the final presentation will be the same.
Adding on some additional context, if you are looking for full plain text rather than stripped down markdown text.
Consider using https://github.com/syntax-tree/mdast-util-to-string rather than remark-stringify to generate plain text rather than markdown text.
Initial checklist
Affected packages and versions
remark@14.0.2, strip-markdown@5.0.0
Link to runnable example
No response
Steps to reproduce
[
Expected behavior
The output is
[
.Actual behavior
The output is
\[
.I am not sure if this is intentional escaping or a bug.
I have a string of Markdown, and I want to convert it to plain text. With the current behavior, I will end up displaying backslashes that were not in the original text.
Runtime
Node v16
Package manager
yarn 2
OS
macOS
Build and bundle tools
Other (please specify in steps to reproduce)
The text was updated successfully, but these errors were encountered: