remove-markdown
remove-markdown copied to clipboard
Strip Markdown stuff from text
The following markdown: ```markdown \# First _paragraph_. ``` results with ``` \# First paragraph ``` and should be: ``` # First paragraph ```
The problem reported here #35 and here #52 still persists. Any string with a lot of whitespace makes the atx-style header regex very slow. The proposed regex, in addition to...
Given the following Markdown: ```markdown [Andor (TV series) - Wikipedia](https://en.m.wikipedia.org/wiki/Andor_(TV_series)) ``` Running it through `remove-markdown` returns: ```markdown Andor (TV series) - Wikipedia) ``` When it should instead return: ```markdown Andor...
Here are 3 examples that I think can be valid markdown text, that `remove-markdown` alters in ways that I think are unexpected. For each of them I listed the string...
I just updated the README with the following announcement: > Hello all, I don’t use this package in my own projects any longer and I have come to the realization...
Running version 0.5.0. Saw issue https://github.com/stiang/remove-markdown/issues/52 but that doesn't seem to have resolved this. ```js const removeMarkdown = require("remove-markdown") const body = `@@ -7480,1160 +7480,4 @@\n scr)\n-%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A %0A\n ` console.log(removeMarkdown(body))...
```js const removeMd = require('remove-markdown'); const a = '\\_123\\_' console.log(removeMd(a)) ``` Input string: `\_123\_` (backslash symbol, underscore symbol, ...) Output: `\123\` Expected output: `_123_`
This PR adds prefix string when error is encountered. In elk, we sometimes saw the follwing: ``` TypeError: removeMarkdown(...).substr is not a function ``` It might be possible that `removeMarkdown`...
I used the ESLint rule [`no-useless-escape`](https://eslint.org/docs/latest/rules/no-useless-escape) to highlight unnecessary escapes in the Regex. You can also see [this Stack Overflow answer](https://stackoverflow.com/a/400316/8839059) for more details on characters that need to be...
Fixed https://github.com/stiang/remove-markdown/issues/72