Skip to content

0.3.4

Choose a tag to compare

@peaceroad peaceroad released this 22 Jul 12:53
· 1 commit to main since this release

v0.3.4

This release improves table token transformations, inline markup handling, and performance across matrix and colgroup workflows.

Highlights

  • Preserve inline Markdown markup when stripping colgroup prefixes.

    For example, emphasis and inline code are now retained correctly in grouped headers:

    | h0 | **group:** *h1* | **group:** `h2` |
  • Optimize strong-wrapper handling for matrix tables.

    • Reuse already parsed inline children when the strong wrapper is unambiguous.
    • Keep compatibility reparsing for tokenless or ambiguous marker patterns.
    • Avoid repeated strong-token scans during tbody conversion.
  • Improve performance for wide grouped headers.

    • Use linear token compaction when many header cells are removed.
    • Keep small edits on the simpler native splice path.
    • Skip inactive option-specific work where possible.
  • Validate all combinations of the public options:

    • matrix
    • wrapper
    • colgroup
    • colgroupWithNoAsterisk

Compatibility

  • Preserve existing fallback behavior when @peaceroad/markdown-it-strong-ja is not installed.
  • Support markdown-it-strong-ja registration before or after this plugin.
  • Preserve existing token level and map metadata behavior.
  • No public option names were changed.

Development

  • Add deterministic render benchmarks for matrix, wrapper, and combined feature flows.
  • Expand regression coverage for wide two-row headers and inline markup preservation.