remove-markdown
remove-markdown copied to clipboard
Escaping with back slash does not work
const removeMd = require('remove-markdown');
const a = '\\_123\\_'
console.log(removeMd(a))
Input string: \_123\_ (backslash symbol, underscore symbol, ...)
Output: \123\
Expected output: _123_
@Loskir I would say that this is working as intended. if the idea is that escaping markdown would preserve the markdown syntax, then that is the opposite of this issue, which wants to remove markdown syntax even when it is escaped
Wow I even forgot where I encountered this issue.
I would say that this module should work as if the input string was rendered as markdown and then copy-pasted as plain text. E.g. escaped character \_ would render as literal _.
But I get why someone would want another behavior.