Skip to content

Release v2.2.0

Choose a tag to compare

@Roman505050 Roman505050 released this 19 Feb 20:10
· 3 commits to main since this release

[2.2.0] - 2026-02-18

Changed

  • Refactored MD/MDX Fixer architecture - Modular fixer system for better extensibility
    • Split fixer logic into separate fixer classes in fixers/ directory
    • Created base Fixer class for all fixers to inherit from
    • Each fixer type now has its own module:
      • InvalidJsxTagsFixer - Fixes JSX tags starting with numbers
      • HtmlCommentsFixer - Converts HTML comments to JSX comments
      • UnclosedTagsFixer - Fixes unclosed void elements
      • InvalidAttributesFixer - Converts HTML attributes to JSX
      • SelfClosingTagsFixer - Fixes self-closing tag spacing
      • NumericEntitiesFixer - Fixes malformed numeric HTML entities
      • JsxCurlyBracesFixer - Escapes curly braces in code-like contexts
    • MarkdownFixer now dynamically uses available fixers
    • Fixers can be customized by passing a custom list to MarkdownFixer

Added

  • Enhanced curly brace handling - Improved JSX curly brace escaping
    • Automatically converts single backticks to double backticks for inline code containing curly braces
    • Wraps code-like patterns (e.g., key:value:{variable}) in backticks to prevent MDX interpretation
    • Preserves Markdown compatibility while preventing MDX build errors
    • Ignores curly braces inside code blocks (mermaid, python, etc.)
    • Fixes ReferenceError: variable is not defined errors in Docusaurus builds

Improved

  • Better code organization and maintainability
  • Easier to add new fixers by creating a new class inheriting from Fixer
  • More flexible fixer configuration