Releases: ariabuckles/simple-markdown
0.7.3: Fix ReDoS with strikethroughs
Update flow types & add support for single level parenthesis in links
Changes:
- d26a295 fixes flow types for the latest version of flow as of writing, 0.111.1
- #74 allows one level of balanced parenthesis in link targets without escaping those parenthesis
This release also changes a bit of the internal structure of things. If you run into any issues with that or the above, please file an issue or message me on twitter @ariabuckles.
0.7.0: Add typescript types & support!
Adds a typescript type definition file (simple-markdown.d.ts).
0.6.1: Fix ReDoS with autolink
Fixes an exponentially backtracking regex DoS (#73)
0.6.0: Add `state.prevCapture`
Adds a new state.prevCapture
during parsing, so that match functions can use it instead of the third parameter to match()
. This state.prevCapture
is now an regex match object, the result of the last successful call to match, or null
if this is the first found match.
Unlike the previous third parameter to match()
, state.prevCapture
is not reset to empty during nested parse
traversals, giving you a more accurate view of the previous capture during nested parses (i.e. inside of block elements)
0.5.3: Fix bug with backticks in inline code
Fixes #72 , where backticks inside inline code were sometimes removed.
0.5.2: Fix exponential backtracking regex vulnerabilities
NOTE: v0.5.3 contains a bugfix on this release's change to inline code. I recommend using 0.5.3 instead
Fixes #71 and several other regex DDOS vulnerabilities.
0.5.1: Fix broken .git in npm bundle
Fixes an issue where 0.5.0 would not uninstall from npm.
If you end up in this case, you can fix it by:
- deleting your node modules
- or just deleting any
.git
folders in your simple-markdown dependency
- or just deleting any
- bumping your simple-markdown version to 0.5.1 or later
- running
npm install
0.5.0: Allow escaping `|` pipes in tables
PLEASE DO NOT USE. Use v0.5.1 instead, which fixes a bug that confuses npm, but is otherwise identical.
Fixes #68 and allows pipes to be escaped in tables.
Gets a minor version bump because it's a new feature / significant bug fix that could break existing code.
0.4.4: Fix vbscript xss
Fixes #63 an xss vulnerability in links with vbscript:
in their url