Skip to content

feat: add includeMathExtensions option to createMarkdownToReactParser#32

Closed
wendyyuchensun wants to merge 1 commit into
coseeing:mainfrom
wendyyuchensun:math
Closed

feat: add includeMathExtensions option to createMarkdownToReactParser#32
wendyyuchensun wants to merge 1 commit into
coseeing:mainfrom
wendyyuchensun:math

Conversation

@wendyyuchensun
Copy link
Copy Markdown
Collaborator

@wendyyuchensun wendyyuchensun commented Apr 30, 2026

Summary

  • Adds includeMathExtensions option to createMarkdownToReactParser (default: true)
  • When false, the math and nemeth marked extensions are excluded from the parser — useful for consumers who don't need math rendering and want a lighter parse
  • Default behavior is unchanged: math (LaTeX/AsciiMath) and Nemeth extensions are included as before
  • Documents the new option in README

Usage

To opt out of math/Nemeth rendering:

createMarkdownToReactParser({
  options: {
    includeMathExtensions: false,
    // ...other options
  },
  components,
})

@wendyyuchensun wendyyuchensun changed the title feat: add includeMathExtensions option to opt in to math and Nemeth parsing feat: add includeMathExtensions option to createMarkdownToReactParser Apr 30, 2026
@wendyyuchensun wendyyuchensun force-pushed the math branch 3 times, most recently from 36b23da to 06ae910 Compare April 30, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant