Releases: md2docx/mdast2docx
Release v1.6.1
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
Minor Changes
-
The following @m2d/* dependencies were upgraded:
@m2d/image: 1.3.2 → 1.4.0
Minor Changes
- ✨ Added
qualityoption 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).
- ✨ Added
Full Changelog: 1.5.1...1.6.0
Release v1.5.1
Release v1.5.0
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, hanging360 - 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
bmpandgiffallback 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
IFirstRowCellPropsandICellPropsinterfaces with complete docx.js styling support - Introduced
dataproperty providing full access to docx.jsIParagraphOptionsandIRunOptions - Support for comprehensive text formatting: fonts, colors, sizes, bold, italics, underline, etc.
- Advanced paragraph styling: alignment, spacing, indentation, numbering, bullets
- Code block support with
preproperty for monospace formatting - Deprecated direct
alignmentproperty in favor ofdata.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
constinfor (...)loop caused accidental reuse of function arg (node). - Fix: added
constkeyword and renamed the inner loop variable to avoid scope collision.
What's Changed
- Optimize toolchain by @mayank1513 in #19
Full Changelog: 1.4.2...1.5.0
Release v1.4.2
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
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
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
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
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
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