Skip to content

Releases

[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:11
ba10b3f

Minor Changes

  • 56c5a33 Thanks @mayank1513! - - mdast2docx: Re-export @m2d/code syntax highlighting plugin from mdast2docx/plugins
    • @m2d/tiptap: Support syntax-highlighted code blocks in DOCX exports via updated @m2d/md2docx

Patch Changes

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:12
ba10b3f

Minor Changes

  • 56c5a33 Thanks @mayank1513! - - mdast2docx: Re-export @m2d/code syntax highlighting plugin from mdast2docx/plugins
    • @m2d/tiptap: Support syntax-highlighted code blocks in DOCX exports via updated @m2d/md2docx

Patch Changes

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:11
ba10b3f

Minor Changes

  • #25 6effeb9 Thanks @mayank1513! - - Wire @m2d/code syntax highlighting plugin by default into remark-docx and remark-docx-node
    • Support passing false in pluginProps (e.g. code: false, mermaid: false, table: false) to cleanly disable any default plugin
    • Support seamless custom plugin substitution by passing pluginProps: { [pluginName]: false } alongside sectionProps: { plugins: [...] }
    • Remove legacy undefined argument when invoking frontmatterPlugin and align Mdast2DocxPluginProps['frontmatter'] type to Parameters<typeof frontmatterPlugin>[0]
    • Simplify default plugin instantiation into a declarative iteration loop

Patch Changes

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:11
ba10b3f

Minor Changes

  • #25 6effeb9 Thanks @mayank1513! - - Wire @m2d/code syntax highlighting plugin by default into remark-docx and remark-docx-node
    • Support passing false in pluginProps (e.g. code: false, mermaid: false, table: false) to cleanly disable any default plugin
    • Support seamless custom plugin substitution by passing pluginProps: { [pluginName]: false } alongside sectionProps: { plugins: [...] }
    • Remove legacy undefined argument when invoking frontmatterPlugin and align Mdast2DocxPluginProps['frontmatter'] type to Parameters<typeof frontmatterPlugin>[0]
    • Simplify default plugin instantiation into a declarative iteration loop

Patch Changes

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:12
ba10b3f

Minor Changes

  • #25 6effeb9 Thanks @mayank1513! - - Wire @m2d/code syntax highlighting plugin by default into remark-docx and remark-docx-node
    • Support passing false in pluginProps (e.g. code: false, mermaid: false, table: false) to cleanly disable any default plugin
    • Support seamless custom plugin substitution by passing pluginProps: { [pluginName]: false } alongside sectionProps: { plugins: [...] }
    • Remove legacy undefined argument when invoking frontmatterPlugin and align Mdast2DocxPluginProps['frontmatter'] type to Parameters<typeof frontmatterPlugin>[0]
    • Simplify default plugin instantiation into a declarative iteration loop

Patch Changes

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:11
ba10b3f

Major Changes

  • #25 2d33aa4 Thanks @mayank1513! - BREAKING CHANGE: Fix frontmatterPlugin signature by removing the unused _docx first parameter.

    We apologize for the design mistake in earlier versions where _docx was accepted as a dummy first parameter frontmatterPlugin(_docx, options).

    frontmatterPlugin now directly accepts options as its first argument: frontmatterPlugin(options?: FrontmatterPluginOptions).

    Migration Guide

    Before:

    frontmatterPlugin(undefined, { coverPage: true });

    After:

    frontmatterPlugin({ coverPage: true });

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:11
ba10b3f

Minor Changes

  • #25 6a895fe Thanks @mayank1513! - - @m2d/code: Add zero-dependency lexical tokenizer, syntax themes (github-light, github-dark, monokai, executive-print), 2-column gutter line numbering, git diff highlighting, and ReDoS-safe linear scanners
    • @m2d/code-lowlight: Add lowlight (highlight.js) syntax highlighting plugin with automatic language detection
    • @m2d/code-shiki: Add shiki syntax highlighting plugin with TextMate grammar tokenization and AST lifecycle pre-warming

Patch Changes

  • #25 9947530 Thanks @mayank1513! - Simplify code block rendering to native core paragraph border styling and colored syntax runs without table or background shading bloat.

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:11
ba10b3f

Minor Changes

  • #25 6a895fe Thanks @mayank1513! - - @m2d/code: Add zero-dependency lexical tokenizer, syntax themes (github-light, github-dark, monokai, executive-print), 2-column gutter line numbering, git diff highlighting, and ReDoS-safe linear scanners
    • @m2d/code-lowlight: Add lowlight (highlight.js) syntax highlighting plugin with automatic language detection
    • @m2d/code-shiki: Add shiki syntax highlighting plugin with TextMate grammar tokenization and AST lifecycle pre-warming

Patch Changes

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:11
ba10b3f

Minor Changes

  • #25 6a895fe Thanks @mayank1513! - - @m2d/code: Add zero-dependency lexical tokenizer, syntax themes (github-light, github-dark, monokai, executive-print), 2-column gutter line numbering, git diff highlighting, and ReDoS-safe linear scanners
    • @m2d/code-lowlight: Add lowlight (highlight.js) syntax highlighting plugin with automatic language detection
    • @m2d/code-shiki: Add shiki syntax highlighting plugin with TextMate grammar tokenization and AST lifecycle pre-warming

Patch Changes

@m2d/[email protected]

Choose a tag to compare

@github-actions github-actions released this 10 Nov 12:12
ba10b3f

Minor Changes

  • #25 9f36380 Thanks @mayank1513! - Enable syntax-highlighted code blocks out of the box for CLI markdown conversions via @m2d/remark-docx-node.

Patch Changes