Releases: ariabuckles/simple-markdown
0.4.3: Fix flow 0.86+ errors
0.4.2: Fix escape sequences in em/strong tags
0.4.2 is a bugfix release with the following changes:
25cc9b3 : Export htmlTag() and reactElement(). Note: these should be considered experimental and the APIs are still subject to change in 1.0.
95d794f : Fix escape sequences in italics/em rule/
09e55b4 : Fix escape sequences in bold/strong rule
The latter two have been things that have been bothering me for quite some time now >_<.
~Aria
0.4.0: Improved flow types, new `outputFor` API
This release contains a lot of code changes, but the README isn't quite ready yet.
However, this release should address some issues users are seeing, and we can use this version as a dependency of other projects with fewer quirks.
Hoping to get the documentation and maybe a 1.0 soon.
Better nested list parsing
0.3.2: Better React 16 compat & better table parsing
This version includes better compatibility with react 16, thanks to @sophiebits and @sapegin, and some table parsing bugfixes, thanks to @dgca!
Other news: I'm working on some bigger changes for a potential 1.0!
0.3.1: React 16 compatibility & Html link definition fix
0.3.0: Better nested bold/italics parsing
Make rules at the same order compete with each other
This solves the em/strong interaction problem in a more general way,
allowing us to have, in general, rules that have the same tokens, and
have their precedence resolved by match quality (here longest match),
instead of requiring a forced precedence between them.
This change adds one new method to the rule API: quality
.
If present, quality must be a function that returns a number, indicating
the quality of the match/capture. This is used by bold/italics/u to
decide between which rule should capture a string that matches multiple
rules. If multuple rules are at the same order and have quality
functions, whichever rule's quality function returns the higher number
will win the match. If there are also rules at the same order without a
quality function, they will only win the match if none of the rule with
quality functions match.
0.2.2: DoS bugfix
Fix an infinite loop/DoS vuln in the link rule
Makes the same modification from marked in this commit:
markedjs/marked@d53f206
Fixes issue #29
Minor regex backtracking bugfix
Cleans up the em
regex a bit which should make it a tiny bit faster (and probably more importantly, makes the code work how it intends to, instead of by coincidence >_<). See 50b12c .
0.1.0: Stable and with minification
This release adds simple-markdown.min.js.
simple-markdown has been pretty stable for a while now, so this will be 0.1.0 instead of 0.0.10.
There are no breaking changes in this release, despite the numbering scheme. Sorry :/