Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
539 stars 45 forks source link

PR into master from dev/olga/Add-the-ability-to-disable-Markdown-rules #325

Closed OlgaRedozubova closed 6 months ago

OlgaRedozubova commented 6 months ago

branch: dev/olga/Add-the-ability-to-disable-Markdown-rules

Fixes: 9474

By default, or set all renderOptions to true (all rendering rules are available):

renderOptions: {
  enable_markdown: true,
  enable_latex: true,
  enable_markdown_mmd_extensions: true,
}

01-ezgif com-video-to-gif-converter (4)

Disable markdown rules. (This will also disable enable_markdown_mmd_extensions):

renderOptions: {
  enable_markdown: false
}

02-ezgif com-video-to-gif-converter (4)

Disable markdown_mmd_extensions rules. (This will disable only <smiles>...</smiles>, <ascii>...</ascii>, mathML):

renderOptions: {
  enable_markdown_mmd_extensions: false
}

Disable latex rules. (This will disable only latex and math rules):

renderOptions: {
  enable_latex: false
}

03-ezgif com-video-to-gif-converter (3)

Disable all rules.

renderOptions: {
  enable_markdown: false,
  enable_latex: false
}

04-ezgif com-video-to-gif-converter (1)