Skip to content

Releases: md2docx/mdast2docx

Release v1.6.1

31 Oct 08:18

Choose a tag to compare

Patch Changes

  • The following @m2d/* dependencies were upgraded:

    @m2d/core: 1.7.0 → 1.7.1

    Patch Changes

    • Fix potential crash when footnote definition is undefined

    @m2d/html: 1.1.10 → 1.1.11

    Patch Changes

    • Prevent hard failure when parsing content with invalid html tags

    @m2d/image: 1.4.0 → 1.4.1

    @m2d/list: 0.0.8 → 0.0.9

    Patch Changes

    • fix(list): restart ordered lists at 1. instead of continuing numbering across lists

Full Changelog: 1.6.0...1.6.1

Release v1.6.0

26 Sep 05:11

Choose a tag to compare

Minor Changes

  • The following @m2d/* dependencies were upgraded:

    @m2d/image: 1.3.2 → 1.4.0

    Minor Changes

    • ✨ Added quality option for image conversion.
    • Defaults to 0.92.
    • Used only when conversion is required and the output format is lossy (e.g., JPEG).

    Patch Changes

    • Improve SVG → image conversion by preferring OffscreenCanvas over <canvas> when available.
    • OffscreenCanvas advantages:
    • Runs in worker contexts → avoids blocking the main thread during rasterization.
    • Provides more consistent and reliable Blob generation compared to HTMLCanvasElement.toBlob.
    • Better performance for large or complex SVGs.
    • Fallback to <canvas> remains for browsers without OffscreenCanvas support (e.g., Safari).

Full Changelog: 1.5.1...1.6.0

Release v1.5.1

25 Sep 17:09

Choose a tag to compare

Patch Changes

Full Changelog: 1.5.0...1.5.1

Release v1.5.0

24 Sep 10:19

Choose a tag to compare

Minor Changes

  • dcae066: The following @m2d/* dependencies were upgraded:

    @m2d/core: 1.5.0 → 1.7.0

    Minor Changes

    • Add footnoteProps to ISectionProps for custom footnote styling
    • Add blockquote styling with left indent and border.
    • Indent: left 720, hanging 360
    • Border: inset left border (size: 20, space: 14, color: aaaaaa)
    • Produces visually distinct blockquotes with proper formatting

    Patch Changes

    • Fix stableSerialize to properly pass ignoreKeys parameter to getSerializableKeys function. Possibly leading to minor performance enhancement
    • Fixes issue parsing markdown with multiple footnotes

    @m2d/image: 1.3.1 → 1.3.2

    Patch Changes

    • Remove bmp and gif fallback formats. These formats are not well supported on canvas, causing issues with our Canvas-based fallback conversion.

    @m2d/table: 0.0.7 → 0.1.1

    Minor Changes

    • Enhanced cell styling API with full docx.js integration and comprehensive formatting options
    • Added IFirstRowCellProps and ICellProps interfaces with complete docx.js styling support
    • Introduced data property providing full access to docx.js IParagraphOptions and IRunOptions
    • Support for comprehensive text formatting: fonts, colors, sizes, bold, italics, underline, etc.
    • Advanced paragraph styling: alignment, spacing, indentation, numbering, bullets
    • Code block support with pre property for monospace formatting
    • Deprecated direct alignment property in favor of data.alignment
    • Enhanced documentation with detailed styling examples and docx.js integration guide
    • Maintained backward compatibility with existing configurations

    Patch Changes

    • Remove deprecated alignment property from default firstRowCellProps
    • fix: prevent variable reuse in table cell traversal
    • Fixes #14
    • Root cause: typo + missing const in for (...) loop caused accidental reuse of function arg (node).
    • Fix: added const keyword and renamed the inner loop variable to avoid scope collision.

What's Changed

Full Changelog: 1.4.2...1.5.0

Release v1.4.2

06 Sep 19:14

Choose a tag to compare

Patch Changes

  • The following @m2d/* dependencies were upgraded:

    @m2d/html: 1.1.8 → 1.1.10

    Patch Changes

    • fix text alignment
    • Fix: fix an edge case where build might fail if the mermaid or similar plugin comes before htmlPlugin

Full Changelog: 1.4.1...1.4.2

Release v1.4.1

25 Jun 03:44

Choose a tag to compare

Patch Changes

  • The following @m2d/* dependencies were upgraded:

    @m2d/html: 1.1.7 → 1.1.8

    Patch Changes

    • Fix HTML parsing issues in case of empty tags.

Full Changelog: 1.4.0...1.4.1

Release v1.4.0

24 Jun 17:47

Choose a tag to compare

Minor Changes

  • The following @m2d/* dependencies were upgraded:

    @m2d/core: 1.4.2 → 1.5.0

    Minor Changes

    • feat: add trimInnerSpaces option to section processing for whitespace normalization

    Patch Changes

    • Attempt to keep entire code block on same page.
    • feat/utils: add mergeOptions function for deep merging user and default options

    @m2d/table: 0.0.6 → 0.0.7

    Minor Changes

    • Support block elements inside table cell, e.g., table inside table

    Patch Changes

    • refactor: enhance table plugin options merging and alignment handling - headers can now be aligned independent of rest of table
    • Update types

Full Changelog: 1.3.5...1.4.0

Release v1.3.5

17 Jun 03:35

Choose a tag to compare

Patch Changes

  • The following @m2d/* dependencies were upgraded:

    @m2d/math: 0.0.5 → 0.0.6

    Patch Changes

    • Keep enough metadata for JSX creation.
    • Upgrade core package to v1

Full Changelog: 1.3.4...1.3.5

Release v1.3.4

17 Jun 02:48

Choose a tag to compare

Patch Changes

  • The following @m2d/* dependencies were upgraded:

    @m2d/html: 1.1.6 → 1.1.7

    Patch Changes

    • fix: td or th tags should be lowercase

Full Changelog: 1.3.3...1.3.4

Release v1.3.3

17 Jun 02:30

Choose a tag to compare

Patch Changes

  • The following @m2d/* dependencies were upgraded:

    @m2d/html: 1.1.5 → 1.1.6

    Patch Changes

    • Fix tags

Full Changelog: 1.3.2...1.3.3