Skip to content

Releases: quantizor/markdown-to-jsx

6.1.4

06 Dec 05:12
Compare
Choose a tag to compare

8e2b380 Fixes an edge case with an HTML regex being too greedy. Thanks @bathos!

6.1.3

05 Dec 05:19
Compare
Choose a tag to compare

A minor release, patching various bugs. For those interested, we are now using the Daring Fireball markdown syntax document itself as one big test 😃

  • 4d24c21 some style adjustments to the site

  • 8385db1 add the markdown syntax explainer itself as a test

  • 6d81300 handle block HTML a bit more elegantly

  • fd2a62a handle image & link references with a space

  • 8689451 test all the various thematic break syntaxes

  • f174af1 handle consecutive headings with no padding newline

    e.g.

    # Hello world
    ## How are ya?
    

6.1.2

04 Dec 09:09
Compare
Choose a tag to compare

trim newlines for block-mode markdown, this fixes an extra layout div being added when it wasn't needed

6.1.1

04 Dec 08:39
Compare
Choose a tag to compare

Fixed a bug with nested heterogenous lists, e.g.:

- foo
  1. bar
    - baz

6.1.0

04 Dec 07:03
Compare
Choose a tag to compare

Some small quality-of-life updates:

  1. 83c4d37 merge className rather than overwriting it (needed for adding classes to fenced code blocks)
  2. 46e474e multiple inline returns should be wrapped in a paragraph tag, not a div
  3. 09a2885 export the markdown component as a functional component
  4. 99c5e38 emit source maps for debugging

#3 ended up yielding some size benefits - the library is now ~4.75kB

6.0.3

04 Dec 00:29
Compare
Choose a tag to compare

Forgot to drop an unused dependency - no code changes.

6.0.2

04 Dec 00:19
Compare
Choose a tag to compare

This package forked the very lightweight simple-markdown library and now uses its parsing infrastructure. On top of that core functionality, a bunch of improvements have been added:

  1. All HTML is now supported natively and dangerouslySetInnerHTML
    is no longer used under any circumstances.

  2. Package size is now just ~5kB gzipped, down from ~37kB.

  3. Anything rendered via the Markdown component can be overridden now,
    even the wrapper, footnote footer, etc.

I've been working on this release for a while and it took a while to get all the regexes working to my satisfaction. There will probably be bugs, so PRs are welcome to add regression tests as needed and get things tightened up.

Thank you!

5.4.2

29 Jul 17:20
Compare
Choose a tag to compare

deps: update to remark-parse@4 (b534012) Drops the compiled bundle size by ~7kb.

5.4.1

23 Jul 00:10
Compare
Choose a tag to compare

9c16391 fix: ignore HTML comments

5.4.0

17 Jul 06:29
Compare
Choose a tag to compare

c652d53 feat: add details and summary to block tag list