Skip to content

Releases: quantizor/markdown-to-jsx

v7.7.12

18 Jul 05:37
6fe8aba
Compare
Choose a tag to compare

Patch Changes

  • 4351ef5: Adjust text parsing to not split on double spaces unless followed by a newline.
  • 4351ef5: Special case detection of :shortcode: so the text processor doesn't break it into chunks, enables shortcode replacement via renderRule.

v7.7.11

18 Jul 04:19
f91069d
Compare
Choose a tag to compare

Patch Changes

  • 4a692dc: Fixes the issue where link text containing multiple nested brackets is not parsed correctly.

    Before: [title[bracket1][bracket2]](url) fails to parse as a link
    After: [title[bracket1][bracket2]](url) correctly parses as a link

v7.7.10

28 Jun 06:56
764f342
Compare
Choose a tag to compare

Patch Changes

  • bf9dd3d: Unescape content intended for JSX attributes.

v7.7.9

28 Jun 06:26
222ef2b
Compare
Choose a tag to compare
+--------------------------+------------------------+-----------------------+
|                          │ simple markdown string │ large markdown string |
+--------------------------+------------------------+-----------------------+
| markdown-to-jsx (7.7.9)  │ 103,280 ops/sec        │ 403 ops/sec           |
+--------------------------+------------------------+-----------------------+
| markdown-to-jsx (7.7.8)  │ 101,922 ops/sec        │ 401 ops/sec           |
+--------------------------+------------------------+-----------------------+

Patch Changes

  • 95dda3e: Avoid creating unnecessary paragraphs inside of HTML.
  • 95dda3e: Fix HTML parser to avoid processing the inside of <pre> blocks.

v7.7.8

19 Jun 22:54
40b8398
Compare
Choose a tag to compare

7.7.7 had a performance regression for very long input that has been resolved in 7.7.8, and then some.

+--------------------------+------------------------+-----------------------+
|                          │ simple markdown string │ large markdown string |
+--------------------------+------------------------+-----------------------+
| markdown-to-jsx (7.7.8)  │ 104,575 ops/sec        │ 386 ops/sec           |
+--------------------------+------------------------+-----------------------+
| markdown-to-jsx (7.7.6)  │ 89,286 ops/sec         │ 329 ops/sec           |
+--------------------------+------------------------+-----------------------+

Patch Changes

  • db378c7: Implement early short-circuit for rules to avoid expensive throwaway work.
  • db378c7: Simpler fix that preserves existing performance.
  • db378c7: Various low-hanging minor performance enhancements by doing less work.
  • db378c7: Improve compression by inlining static RuleType entries when used in the codebase.

v7.7.7

15 Jun 06:09
Compare
Choose a tag to compare

Patch Changes

  • 89c87e5: Handle spaces in text as a stop token to improve processing, also adapt paragraph detection to exclude non-atx compliant headings if that option is enabled.

    Fixes #680

v7.7.6

23 Apr 05:30
d023bdf
Compare
Choose a tag to compare

Patch Changes

  • 654855b: Sanitize more attributes by default to help address XSS vectors.
  • 7639c08: Improve splitting of style attributes.

v7.7.5

23 Apr 04:24
c0e5583
Compare
Choose a tag to compare

Patch Changes

  • 0ddaabb: Remove unescaping of content inside fenced code blocks.
  • 07b4280: Better handle exotic backtick scenarios for inline code blocks.
  • 0dad192: Fix consecutive marked text.

v7.7.4

17 Feb 19:46
Compare
Choose a tag to compare
+--------------------------+------------------------+-----------------------+
|                          │ simple markdown string │ large markdown string |
+--------------------------+------------------------+-----------------------+
| markdown-to-jsx (7.7.4)  │ 92,671 ops/sec         │ 330 ops/sec           |
+--------------------------+------------------------+-----------------------+
| markdown-to-jsx (7.7.3)  │ 91,164 ops/sec         │ 301 ops/sec           |
+--------------------------+------------------------+-----------------------+

Patch Changes

  • adc08c7: Further optimize the plain text splitting regex.
  • c8bc5f3: Remove redundant detectors when processing paragraphs.
  • d96a8d8: Replace some regexes with optimized functions to avoid polynomial time scenarios. Also fixes compatibility issues in some older browsers with the trimEnd API.
  • 7be3d77: Optimize regexes and parsing to do less work.
  • cf7693c: Rework inline code syntax handling, handle escaped characters in code blocks correctly so they render without the backslash.

v7.7.3

07 Jan 06:34
3cfd019
Compare
Choose a tag to compare

Patch Changes

  • 8026103: Handle paragraph splitting better, fixes #641.
  • 1ea00bb: Adjust table row parsing to better handle inline syntaxes and improve performance.