Stop escaping _ inside words? #119
-
Question similar to https://github.com/orgs/remarkjs/discussions/885 but for intra-word underscores: I'm using milkdown, which uses remark-stringify, which uses mdast-util-to-markdown to output markdown. Is there any way to create an option, using unsafe or handler settings, to stop escaping underscores inside words? My use case involves users with datasets making lists of their files, often using many, many snake_case_file_names. The goal of my project is to output markdown for both rendering as HTML and as a markdown file output. The ultimate markdown renderer has intra-word-emphasis turned off, so escaping the underscores inside words does nothing for me, and it's really very annoying for the plain text markdown file users when they try to reference and copy and paste filenames like I understand escaping these underscores by default, but it would be ideal if it was something that could be toggled or changed with the options! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
No, escaping things is needed. Imagine JavaScript strings without escaping? That wouldn’t work. |
Beta Was this translation helpful? Give feedback.
-
Welcome @ahamelers! 👋
I'm not sure I follow.
I'm not sure I follow this either.
Not easily, escapes are needed. |
Beta Was this translation helpful? Give feedback.
CommonMark is a language. Like with any human or computer language, people need a baseline understanding to work with it.
remark
and its surround tools can provide support in working with content, helping users better understand the language, and with efficiency.Just like people need to understand JavaScript to work with it, yet IDEs, Linters, build tools, and type checkers still exist and add value.