mathpix-markdown-it 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/README.md +84 -81
  2. package/es5/bundle.js +2 -2
  3. package/es5/index.js +2 -2
  4. package/lib/components/mathpix-markdown/index.js +2 -1
  5. package/lib/components/mathpix-markdown/index.js.map +1 -1
  6. package/lib/markdown/common/consts.d.ts +3 -0
  7. package/lib/markdown/common/consts.js +9 -6
  8. package/lib/markdown/common/consts.js.map +1 -1
  9. package/lib/markdown/common/convert-math-to-html.d.ts +2 -0
  10. package/lib/markdown/common/convert-math-to-html.js +126 -0
  11. package/lib/markdown/common/convert-math-to-html.js.map +1 -0
  12. package/lib/markdown/common/html-re.d.ts +7 -0
  13. package/lib/markdown/common/html-re.js +88 -0
  14. package/lib/markdown/common/html-re.js.map +1 -0
  15. package/lib/markdown/common/mmdRules.js +10 -0
  16. package/lib/markdown/common/mmdRules.js.map +1 -1
  17. package/lib/markdown/index.js +2 -1
  18. package/lib/markdown/index.js.map +1 -1
  19. package/lib/markdown/md-block-rule/begin-tabular/index.js +4 -4
  20. package/lib/markdown/md-block-rule/begin-tabular/index.js.map +1 -1
  21. package/lib/markdown/md-block-rule/begin-tabular/multi-column-row.js +18 -19
  22. package/lib/markdown/md-block-rule/begin-tabular/multi-column-row.js.map +1 -1
  23. package/lib/markdown/md-block-rule/begin-tabular/parse-tabular.js +38 -24
  24. package/lib/markdown/md-block-rule/begin-tabular/parse-tabular.js.map +1 -1
  25. package/lib/markdown/md-block-rule/begin-tabular/sub-tabular.js +1 -1
  26. package/lib/markdown/md-block-rule/begin-tabular/sub-tabular.js.map +1 -1
  27. package/lib/markdown/md-block-rule/mathml-block.d.ts +2 -0
  28. package/lib/markdown/md-block-rule/mathml-block.js +68 -0
  29. package/lib/markdown/md-block-rule/mathml-block.js.map +1 -0
  30. package/lib/markdown/md-block-rule/mmd-html-block.d.ts +2 -0
  31. package/lib/markdown/md-block-rule/mmd-html-block.js +96 -0
  32. package/lib/markdown/md-block-rule/mmd-html-block.js.map +1 -0
  33. package/lib/markdown/md-inline-rule/html_inline_full_tag.d.ts +2 -0
  34. package/lib/markdown/md-inline-rule/html_inline_full_tag.js +62 -0
  35. package/lib/markdown/md-inline-rule/html_inline_full_tag.js.map +1 -0
  36. package/lib/markdown/md-inline-rule/mathml-inline.d.ts +2 -0
  37. package/lib/markdown/md-inline-rule/mathml-inline.js +42 -0
  38. package/lib/markdown/md-inline-rule/mathml-inline.js.map +1 -0
  39. package/lib/markdown/md-inline-rule/tabular.js +11 -6
  40. package/lib/markdown/md-inline-rule/tabular.js.map +1 -1
  41. package/lib/markdown/md-inline-rule2/mmd-html_inline2.d.ts +1 -0
  42. package/lib/markdown/md-inline-rule2/mmd-html_inline2.js +85 -0
  43. package/lib/markdown/md-inline-rule2/mmd-html_inline2.js.map +1 -0
  44. package/lib/markdown/md-renderer-rules/breaks.js +5 -1
  45. package/lib/markdown/md-renderer-rules/breaks.js.map +1 -1
  46. package/lib/markdown/mdPluginRaw.js +34 -289
  47. package/lib/markdown/mdPluginRaw.js.map +1 -1
  48. package/lib/markdown/rules.js +1 -1
  49. package/lib/markdown/rules.js.map +1 -1
  50. package/lib/markdown/sanitize/index.js +1 -1
  51. package/lib/markdown/sanitize/index.js.map +1 -1
  52. package/lib/markdown/utils.js +1 -1
  53. package/lib/markdown/utils.js.map +1 -1
  54. package/lib/mathjax/fix-unicode.d.ts +6 -0
  55. package/lib/mathjax/fix-unicode.js +38 -0
  56. package/lib/mathjax/fix-unicode.js.map +1 -0
  57. package/lib/mathjax/mathJaxConfig.js +2 -1
  58. package/lib/mathjax/mathJaxConfig.js.map +1 -1
  59. package/lib/mathjax/mathjax.js +4 -0
  60. package/lib/mathjax/mathjax.js.map +1 -1
  61. package/lib/mathpix-markdown-model/index.d.ts +2 -0
  62. package/lib/mathpix-markdown-model/index.js +2 -1
  63. package/lib/mathpix-markdown-model/index.js.map +1 -1
  64. package/package.json +1 -1
package/README.md CHANGED
@@ -690,27 +690,28 @@ The `MathpixMarkdown` React element accepts the following props:
690
690
 
691
691
  ### MathpixMarkdown props
692
692
 
693
- | prop | type *`default`* | description |
694
- |------------------|------------------------------|------------------------------------------------------------------------------------------------------------------------|
695
- | `text` | sting | string that will be converted |
696
- | `alignMathBlock` | string *`center`* | aligns `math-block` by this params |
697
- | `display` | string *`block`* | `block` - the whole space, `inline-block` - renders in its actual size |
698
- | `showTimeLog` | boolean *`false`* | shows execution time in console |
699
- | `isDisableFancy` | boolean *`false`* | `true` - disables processing of special characters (Example: `+ item`, `- item` ) |
700
- | `disableRules` | array of strings *`[]`* | You can pass a list of rules for markdown rendering that should be disabled but only if `isDisableFancy` is not `true`.|
701
- | | | Example: `disableRules = ['replacements'] ` will disable fancy characters processing. |
702
- | `htmlTags` | boolean;*`false`* | Enables HTML tags in source |
703
- | `xhtmlOut` | boolean;*`false`* | Uses `/` to close single tags (`<br />`) |
704
- | `breaks` | boolean;*`true`* | Converts `\n` in paragraphs into `<br>` |
705
- | `typographer` | boolean;*`false`* | Enables some language-neutral replacement + quotes beautification (Example: `(c) (C) (r) (R) (tm) (TM) (p) (P) +-`) |
706
- | `linkify` | boolean;*`false`* | Autoconverts URL-like text to links |
707
- | `width` | number;*`1200`* | Sets text container width |
708
- | `outMath` | [TOutputMath](https://github.com/Mathpix/mathpix-markdown-it#toutputmath);*`{}`* | Sets options to output html |
709
- | `mathJax` | [TOutputMathJax](https://github.com/Mathpix/mathpix-markdown-it#toutputmathjax);*`{}`* | Sets options to output MathJax |
710
- | `smiles` | [ISmilesOptions](https://github.com/Mathpix/mathpix-markdown-it#ismilesoptions);*`{}`* | Sets options to output chemistry equation |
711
- | `parserErrors` | [ParserErrors](https://github.com/Mathpix/mathpix-markdown-it#parsererrors);*`{}`* | Sets options to output parser errors for equations and tabular |
712
- | `codeHighlight` | [CodeHighlight](https://github.com/Mathpix/mathpix-markdown-it#codehighlight);*`{}`* | Sets options to highlight code block |
713
- | `footnotes` | [Footnotes](https://github.com/Mathpix/mathpix-markdown-it#footnotes);*`{}`* | Sets options to footnotes |
693
+ | prop | type&nbsp;*`default`* | description |
694
+ |--------------------------|------------------------------|------------------------------------------------------------------------------------------------------------------------|
695
+ | `text` | sting | string that will be converted |
696
+ | `alignMathBlock` | string&nbsp;*`center`* | aligns `math-block` by this params |
697
+ | `display` | string&nbsp;*`block`* | `block` - the whole space, `inline-block` - renders in its actual size |
698
+ | `showTimeLog` | boolean&nbsp;*`false`* | shows execution time in console |
699
+ | `isDisableFancy` | boolean&nbsp;*`false`* | `true` - disables processing of special characters (Example: `+ item`, `- item` ) |
700
+ | `disableRules` | array of strings&nbsp;*`[]`* | You can pass a list of rules for markdown rendering that should be disabled but only if `isDisableFancy` is not `true`.|
701
+ | | | Example: `disableRules = ['replacements'] ` will disable fancy characters processing. |
702
+ | `htmlTags` | boolean;*`false`* | Enables HTML tags in source |
703
+ | `htmlDisableTagMatching` | boolean;*`false`* | Allows to turn off the validation that checks for matching opening and closing HTML tags |
704
+ | `xhtmlOut` | boolean;*`false`* | Uses `/` to close single tags (`<br />`) |
705
+ | `breaks` | boolean;*`true`* | Converts `\n` in paragraphs into `<br>` |
706
+ | `typographer` | boolean;*`false`* | Enables some language-neutral replacement + quotes beautification (Example: `(c) (C) (r) (R) (tm) (TM) (p) (P) +-`) |
707
+ | `linkify` | boolean;*`false`* | Autoconverts URL-like text to links |
708
+ | `width` | number;*`1200`* | Sets text container width |
709
+ | `outMath` | [TOutputMath](https://github.com/Mathpix/mathpix-markdown-it#toutputmath);*`{}`* | Sets options to output html |
710
+ | `mathJax` | [TOutputMathJax](https://github.com/Mathpix/mathpix-markdown-it#toutputmathjax);*`{}`* | Sets options to output MathJax |
711
+ | `smiles` | [ISmilesOptions](https://github.com/Mathpix/mathpix-markdown-it#ismilesoptions);*`{}`* | Sets options to output chemistry equation |
712
+ | `parserErrors` | [ParserErrors](https://github.com/Mathpix/mathpix-markdown-it#parsererrors);*`{}`* | Sets options to output parser errors for equations and tabular |
713
+ | `codeHighlight` | [CodeHighlight](https://github.com/Mathpix/mathpix-markdown-it#codehighlight);*`{}`* | Sets options to highlight code block |
714
+ | `footnotes` | [Footnotes](https://github.com/Mathpix/mathpix-markdown-it#footnotes);*`{}`* | Sets options to footnotes |
714
715
 
715
716
 
716
717
  ## MathpixMarkdownModel methods
@@ -733,69 +734,71 @@ The `MathpixMarkdown` React element accepts the following props:
733
734
 
734
735
  ### TMarkdownItOptions
735
736
 
736
- | | type&nbsp;*`default`* | description |
737
- |------------------|------------------------------|------------------------------------------------------------------------------------------------------------------------|
738
- | `isDisableFancy` | boolean&nbsp;*`false`* | `true` - disables processing of special characters (Example: `+ item`, `- item` ) |
739
- | `disableRules` | array of strings&nbsp;*`[]`* | You can pass a list of rules for markdown rendering that should be disabled but only if `isDisableFancy` is not `true`.|
740
- | | | Example: `disableRules = ['replacements'] ` will disable fancy characters processing. |
741
- | `htmlTags` | boolean;*`false`* | Enables HTML tags in source |
742
- | `xhtmlOut` | boolean;*`false`* | Uses `/` to close single tags (`<br />`) |
743
- | `breaks` | boolean;*`true`* | Converts `\n` in paragraphs into `<br>` |
744
- | `typographer` | boolean;*`true`* | Enables some language-neutral replacement + quotes beautification (Example: `(c) (C) (r) (R) (tm) (TM) (p) (P) +-`) |
745
- | `linkify` | boolean;*`true`* | Autoconverts URL-like text to links |
746
- | `width` | number;*`1200`* | Sets text container width |
747
- | `lineNumbering` | boolean;*`false`* | Sets line numbers. Recommended for synchronization with a text editor. |
748
- | `outMath` | [TOutputMath](https://github.com/Mathpix/mathpix-markdown-it#toutputmath);*`{}`* | Sets options to output html |
749
- | `mathJax` | [TOutputMathJax](https://github.com/Mathpix/mathpix-markdown-it#toutputmathjax);*`{}`* | Sets options to output MathJax |
750
- | `htmlSanitize` | [THtmlSanitize](https://github.com/Mathpix/mathpix-markdown-it#thtmlsanitize);*`{}`* | Sets html output options (if `htmlTags=true`). Cleans up user html input. |
751
- | | | Removes script tags and stuff. Removes broken and malicious html. Set to `false` to disable |
752
- | `smiles` | [ISmilesOptions](https://github.com/Mathpix/mathpix-markdown-it#ismilesoptions);*`{}`* | Sets options to output chemistry equation |
753
- | `htmlWrapper` | [THtmlWrapper](https://github.com/Mathpix/mathpix-markdown-it#thtmlwrapper);*`{}`* | Sets options for output full html page |
754
- | `accessibility` | [TAccessibility](https://github.com/Mathpix/mathpix-markdown-it#taccessibility);*`{}`* | Sets options to accessibility |
755
- | `nonumbers` | boolean;*`false`* | Sets options to prevent equations, tables, figure from being numbered |
756
- | `showPageBreaks` | boolean;*`false`* | Hidden tags will be shown in html like page break |
757
- | `centerImages` | boolean;*`true`* | Center align images by default |
758
- | `centerTables` | boolean;*`true`* | Center align tables by default |
759
- | `validateLink` | function;*`null`* | The function `(url: string) => void` to override md link validator |
760
- | `enableCodeBlockRuleForLatexCommands`| boolean;*`false`* | By default, if latex commands are indented (4 spaces / 1 tab) they do not become `Code Blocks`. |
761
- | `parserErrors` | [ParserErrors](https://github.com/Mathpix/mathpix-markdown-it#parsererrors);*`{}`* | Sets options to output parser errors for equations and tabular |
762
- | `codeHighlight` | [CodeHighlight](https://github.com/Mathpix/mathpix-markdown-it#codehighlight);*`{}`* | Sets options to highlight code block |
763
- | `footnotes` | [Footnotes](https://github.com/Mathpix/mathpix-markdown-it#footnotes);*`{}`* | Sets options to footnotes |
764
- | `copyToClipboard` | boolean;*`false`* | Added copy to clipboard button for code chunks. To handle events, import the function addListenerCopyToClipdoardEvents() from "mathpix-markdown-it/lib/copy-to-clipboard";|
765
- | `renderOptions` | [RenderOptions](https://github.com/Mathpix/mathpix-markdown-it#renderoptions);*`{}`* | Sets options to enable render rules |
737
+ | | type&nbsp;*`default`* | description |
738
+ |---------------------------------------|------------------------------|------------------------------------------------------------------------------------------------------------------------|
739
+ | `isDisableFancy` | boolean&nbsp;*`false`* | `true` - disables processing of special characters (Example: `+ item`, `- item` ) |
740
+ | `disableRules` | array of strings&nbsp;*`[]`* | You can pass a list of rules for markdown rendering that should be disabled but only if `isDisableFancy` is not `true`.|
741
+ | | | Example: `disableRules = ['replacements'] ` will disable fancy characters processing. |
742
+ | `htmlTags` | boolean;*`false`* | Enables HTML tags in source |
743
+ | `htmlDisableTagMatching` | boolean;*`false`* | Allows to turn off the validation that checks for matching opening and closing HTML tags |
744
+ | `xhtmlOut` | boolean;*`false`* | Uses `/` to close single tags (`<br />`) |
745
+ | `breaks` | boolean;*`true`* | Converts `\n` in paragraphs into `<br>` |
746
+ | `typographer` | boolean;*`true`* | Enables some language-neutral replacement + quotes beautification (Example: `(c) (C) (r) (R) (tm) (TM) (p) (P) +-`) |
747
+ | `linkify` | boolean;*`true`* | Autoconverts URL-like text to links |
748
+ | `width` | number;*`1200`* | Sets text container width |
749
+ | `lineNumbering` | boolean;*`false`* | Sets line numbers. Recommended for synchronization with a text editor. |
750
+ | `outMath` | [TOutputMath](https://github.com/Mathpix/mathpix-markdown-it#toutputmath);*`{}`* | Sets options to output html |
751
+ | `mathJax` | [TOutputMathJax](https://github.com/Mathpix/mathpix-markdown-it#toutputmathjax);*`{}`* | Sets options to output MathJax |
752
+ | `htmlSanitize` | [THtmlSanitize](https://github.com/Mathpix/mathpix-markdown-it#thtmlsanitize);*`{}`* | Sets html output options (if `htmlTags=true`). Cleans up user html input. |
753
+ | | | Removes script tags and stuff. Removes broken and malicious html. Set to `false` to disable |
754
+ | `smiles` | [ISmilesOptions](https://github.com/Mathpix/mathpix-markdown-it#ismilesoptions);*`{}`* | Sets options to output chemistry equation |
755
+ | `htmlWrapper` | [THtmlWrapper](https://github.com/Mathpix/mathpix-markdown-it#thtmlwrapper);*`{}`* | Sets options for output full html page |
756
+ | `accessibility` | [TAccessibility](https://github.com/Mathpix/mathpix-markdown-it#taccessibility);*`{}`* | Sets options to accessibility |
757
+ | `nonumbers` | boolean;*`false`* | Sets options to prevent equations, tables, figure from being numbered |
758
+ | `showPageBreaks` | boolean;*`false`* | Hidden tags will be shown in html like page break |
759
+ | `centerImages` | boolean;*`true`* | Center align images by default |
760
+ | `centerTables` | boolean;*`true`* | Center align tables by default |
761
+ | `validateLink` | function;*`null`* | The function `(url: string) => void` to override md link validator |
762
+ | `enableCodeBlockRuleForLatexCommands` | boolean;*`false`* | By default, if latex commands are indented (4 spaces / 1 tab) they do not become `Code Blocks`. |
763
+ | `parserErrors` | [ParserErrors](https://github.com/Mathpix/mathpix-markdown-it#parsererrors);*`{}`* | Sets options to output parser errors for equations and tabular |
764
+ | `codeHighlight` | [CodeHighlight](https://github.com/Mathpix/mathpix-markdown-it#codehighlight);*`{}`* | Sets options to highlight code block |
765
+ | `footnotes` | [Footnotes](https://github.com/Mathpix/mathpix-markdown-it#footnotes);*`{}`* | Sets options to footnotes |
766
+ | `copyToClipboard` | boolean;*`false`* | Added copy to clipboard button for code chunks. To handle events, import the function addListenerCopyToClipdoardEvents() from "mathpix-markdown-it/lib/copy-to-clipboard";|
767
+ | `renderOptions` | [RenderOptions](https://github.com/Mathpix/mathpix-markdown-it#renderoptions);*`{}`* | Sets options to enable render rules |
766
768
 
767
769
  ### optionsMathpixMarkdown
768
770
 
769
- | | type&nbsp;*`default`* | description |
770
- |------------------|------------------------------|------------------------------------------------------------------------------------------------------------------------|
771
- | `alignMathBlock` | string&nbsp;*`center`* | aligns `math-block` |
772
- | `display` | string&nbsp;*`block`* | `block` - the whole space, `inline-block` - renders in its actual size |
773
- | `showTimeLog` | boolean&nbsp;*`false`* | shows execution time in console |
774
- | `isDisableFancy` | boolean&nbsp;*`false`* | `true` - disables processing of special characters (Example: `+ item`, `- item` ) |
775
- | `disableRules` | array of strings&nbsp;*`[]`* | You can pass a list of rules for markdown rendering that should be disabled but only if `isDisableFancy` is not `true`.|
776
- | | | Example: `disableRules = ['replacements'] ` will disable fancy characters processing. |
777
- | `htmlTags` | boolean;*`false`* | Enables HTML tags in source |
778
- | `xhtmlOut` | boolean;*`false`* | Uses `/` to close single tags (`<br />`) |
779
- | `breaks` | boolean;*`true`* | Converts `\n` in paragraphs into `<br>` |
780
- | `typographer` | boolean;*`true`* | Enables some language-neutral replacement + quotes beautification (Example: `(c) (C) (r) (R) (tm) (TM) (p) (P) +-`) |
781
- | `linkify` | boolean;*`true`* | Autoconverts URL-like text to links |
782
- | `width` | number;*`1200`* | Sets text container width |
783
- | `outMath` | [TOutputMath](https://github.com/Mathpix/mathpix-markdown-it#toutputmath);*`{}`* | Sets options to output html |
784
- | `mathJax` | [TOutputMathJax](https://github.com/Mathpix/mathpix-markdown-it#toutputmathjax);*`{}`* | Sets options to output MathJax |
785
- | `htmlSanitize` | [THtmlSanitize](https://github.com/Mathpix/mathpix-markdown-it#thtmlsanitize);*`{}`* | Sets html output options (if `htmlTags=true`). Cleans up user html input. |
786
- | | | Removes script tags and stuff. Removes broken and malicious html. Set to `false` to disable |
787
- | `smiles` | [ISmilesOptions](https://github.com/Mathpix/mathpix-markdown-it#ismilesoptions);*`{}`* | Sets options to output chemistry equation |
788
- | `nonumbers` | boolean;*`false`* | Sets options to prevent equations, tables, figure from being numbered |
789
- | `showPageBreaks` | boolean;*`false`* | Hidden tags will be shown in html like page break |
790
- | `centerImages` | boolean;*`true`* | Center align images by default |
791
- | `centerTables` | boolean;*`true`* | Center align tables by default |
792
- | `validateLink` | function;*`null`* | The function `(url: string) => void` to override md link validator |
793
- | `enableCodeBlockRuleForLatexCommands`| boolean;*`false`* | By default, if latex commands are indented (4 spaces / 1 tab) they do not become `Code Blocks`. |
794
- | `parserErrors` | [ParserErrors](https://github.com/Mathpix/mathpix-markdown-it#parsererrors);*`{}`* | Sets options to output parser errors for equations and tabular |
795
- | `codeHighlight` | [CodeHighlight](https://github.com/Mathpix/mathpix-markdown-it#codehighlight);*`{}`* | Sets options to highlight code block |
796
- | `footnotes` | [Footnotes](https://github.com/Mathpix/mathpix-markdown-it#footnotes);*`{}`* | Sets options to footnotes |
797
- | `copyToClipboard` | boolean;*`false`* | Added copy to clipboard button for code chunks. To handle events, import the function addListenerCopyToClipdoardEvents() from "mathpix-markdown-it/lib/copy-to-clipboard";|
798
- | `renderOptions` | [RenderOptions](https://github.com/Mathpix/mathpix-markdown-it#renderoptions);*`{}`* | Sets options to enable render rules |
771
+ | | type&nbsp;*`default`* | description |
772
+ |---------------------------------------|------------------------------|------------------------------------------------------------------------------------------------------------------------|
773
+ | `alignMathBlock` | string&nbsp;*`center`* | aligns `math-block` |
774
+ | `display` | string&nbsp;*`block`* | `block` - the whole space, `inline-block` - renders in its actual size |
775
+ | `showTimeLog` | boolean&nbsp;*`false`* | shows execution time in console |
776
+ | `isDisableFancy` | boolean&nbsp;*`false`* | `true` - disables processing of special characters (Example: `+ item`, `- item` ) |
777
+ | `disableRules` | array of strings&nbsp;*`[]`* | You can pass a list of rules for markdown rendering that should be disabled but only if `isDisableFancy` is not `true`.|
778
+ | | | Example: `disableRules = ['replacements'] ` will disable fancy characters processing. |
779
+ | `htmlTags` | boolean;*`false`* | Enables HTML tags in source |
780
+ | `htmlDisableTagMatching` | boolean;*`false`* | Allows to turn off the validation that checks for matching opening and closing HTML tags |
781
+ | `xhtmlOut` | boolean;*`false`* | Uses `/` to close single tags (`<br />`) |
782
+ | `breaks` | boolean;*`true`* | Converts `\n` in paragraphs into `<br>` |
783
+ | `typographer` | boolean;*`true`* | Enables some language-neutral replacement + quotes beautification (Example: `(c) (C) (r) (R) (tm) (TM) (p) (P) +-`) |
784
+ | `linkify` | boolean;*`true`* | Autoconverts URL-like text to links |
785
+ | `width` | number;*`1200`* | Sets text container width |
786
+ | `outMath` | [TOutputMath](https://github.com/Mathpix/mathpix-markdown-it#toutputmath);*`{}`* | Sets options to output html |
787
+ | `mathJax` | [TOutputMathJax](https://github.com/Mathpix/mathpix-markdown-it#toutputmathjax);*`{}`* | Sets options to output MathJax |
788
+ | `htmlSanitize` | [THtmlSanitize](https://github.com/Mathpix/mathpix-markdown-it#thtmlsanitize);*`{}`* | Sets html output options (if `htmlTags=true`). Cleans up user html input. |
789
+ | | | Removes script tags and stuff. Removes broken and malicious html. Set to `false` to disable |
790
+ | `smiles` | [ISmilesOptions](https://github.com/Mathpix/mathpix-markdown-it#ismilesoptions);*`{}`* | Sets options to output chemistry equation |
791
+ | `nonumbers` | boolean;*`false`* | Sets options to prevent equations, tables, figure from being numbered |
792
+ | `showPageBreaks` | boolean;*`false`* | Hidden tags will be shown in html like page break |
793
+ | `centerImages` | boolean;*`true`* | Center align images by default |
794
+ | `centerTables` | boolean;*`true`* | Center align tables by default |
795
+ | `validateLink` | function;*`null`* | The function `(url: string) => void` to override md link validator |
796
+ | `enableCodeBlockRuleForLatexCommands` | boolean;*`false`* | By default, if latex commands are indented (4 spaces / 1 tab) they do not become `Code Blocks`. |
797
+ | `parserErrors` | [ParserErrors](https://github.com/Mathpix/mathpix-markdown-it#parsererrors);*`{}`* | Sets options to output parser errors for equations and tabular |
798
+ | `codeHighlight` | [CodeHighlight](https://github.com/Mathpix/mathpix-markdown-it#codehighlight);*`{}`* | Sets options to highlight code block |
799
+ | `footnotes` | [Footnotes](https://github.com/Mathpix/mathpix-markdown-it#footnotes);*`{}`* | Sets options to footnotes |
800
+ | `copyToClipboard` | boolean;*`false`* | Added copy to clipboard button for code chunks. To handle events, import the function addListenerCopyToClipdoardEvents() from "mathpix-markdown-it/lib/copy-to-clipboard";|
801
+ | `renderOptions` | [RenderOptions](https://github.com/Mathpix/mathpix-markdown-it#renderoptions);*`{}`* | Sets options to enable render rules |
799
802
 
800
803
  ### TOutputMath
801
804