Skip to content

Commit 9a56b31

Browse files
Olga RedozubovaOlga Redozubova
authored andcommitted
Removed DisableRulesGroup
1 parent a3e406e commit 9a56b31

File tree

16 files changed

+12
-1828
lines changed

16 files changed

+12
-1828
lines changed

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -883,19 +883,7 @@ The `MathpixMarkdown` React element accepts the following props:
883883
|-----------------------------------|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
884884
| `enable_markdown` | boolean *`true`* | Enable markdown rules. If it is set to `false`, then all markdown rules will be disabled. This also disables the rules for `enable_markdown_mmd_extensions`. |
885885
| `enable_latex` | boolean *`true`* | Enable latex rules. If it is set to `false`, then all latex and math rules will be disabled. |
886-
| `enable_markdown_mmd_extensions` | boolean&nbsp;*`true`* | Enable markdown mmd extensions rules: `<smiles>...</smiles>`, `<ascii>...</ascii>`, `mathML`. If it is set to `false` then these rules will be disabled. |
887-
| `disableRulesGroup` | [DisableRulesGroup](https://github.com/Mathpix/mathpix-markdown-it#disablerulesgroup);*`null`* | Groups of rules that should be excluded from rendering (this api is subject to change). |
888-
889-
### DisableRulesGroup
890-
891-
| | type&nbsp;*`default`* | |
892-
|--------------|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
893-
| `chem` | boolean&nbsp;*`false`* | Disable chem rules: `<smiles>...</smiles>`. If should be to disable only rules for chem. And neither `enable_markdown` nor `enable_markdown_mmd_extensions` are set to `false`. |
894-
| `html` | boolean&nbsp;*`false`* | Disable html rules. If should be to disable only rules for html. And `enable_markdown` is not set to `false`. |
895-
| `asciiMath` | boolean&nbsp;*`false`* | Disable asciiMath rules `<ascii>...</ascii>`. If should be to disable only rules for asciiMath. And neither `enable_markdown` nor `enable_markdown_mmd_extensions` are set to `false`. |
896-
| `math` | boolean&nbsp;*`false`* | Disable math rules `$...$, $$...$$, \(...\), \[...\]`. If should be to disable only the rules for math. This will also disable rules for simpleMath. And `enable_latex` is not set to `false`. |
897-
| `simpleMath` | boolean&nbsp;*`false`* | Disable simpleMath rules `$...$, $$...$$`. If should be to disable only rules for simpleMath. And `enable_latex` is not set to `false`. |
898-
| `mathML` | boolean&nbsp;*`false`* | Disable mathML rules `mathML`. If should be to disable only rules for mathML. And neither `enable_markdown` nor `enable_markdown_mmd_extensions` are set to `false`. |
886+
| `enable_markdown_mmd_extensions` | boolean&nbsp;*`true`* | Enable markdown mmd extensions rules: `smiles`, `asciiMath`, `mathML`. If it is set to `false` then these rules will be disabled. |
899887

900888
### TAccessibility
901889

es5/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

es5/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import MathpixLoader from './components/mathpix-loader';
22
import MathpixMarkdown from './components/mathpix-markdown';
33
import { mathpixMarkdownPlugin, initMathpixMarkdown } from './markdown/mathpix-markdown-plugins';
44
import { mdPluginMathJax, mdPluginHighlightCode, mdPluginText, mdPluginTOC, mdPluginAnchor, mdPluginTableTabular, mdPluginList, mdPluginChemistry, mdPluginCollapsible, mdLatexFootnotes, mdSetPositionsAndHighlight } from "./markdown/mdPluginConfigured";
5-
import { MathpixMarkdownModel, TMarkdownItOptions, optionsMathpixMarkdown, TOutputMath, TOutputMathJax, THtmlSanitize, TTocStyle, THighlight, ParserErrors, CodeHighlight, Footnotes, RenderOptions, DisableRulesGroup } from "./mathpix-markdown-model";
5+
import { MathpixMarkdownModel, TMarkdownItOptions, optionsMathpixMarkdown, TOutputMath, TOutputMathJax, THtmlSanitize, TTocStyle, THighlight, ParserErrors, CodeHighlight, Footnotes, RenderOptions } from "./mathpix-markdown-model";
66
import { ISmilesOptions } from './markdown/md-chemistry';
77
import { resetTheoremEnvironments } from './markdown/md-theorem/helper';
88
import { rest_mmd_footnotes_list } from './markdown/md-latex-footnotes/utils';
99
import { FootnoteItem } from './markdown/md-latex-footnotes/interfaces';
1010
import { eLabelType, ILabel, getLabelsList, getLabelByKeyFromLabelsList, clearLabelsList } from "./markdown/common/labels";
1111
import { normalizeLink } from './helpers/normalize-link';
12-
export { MathpixLoader, MathpixMarkdown, MathpixMarkdownModel, mathpixMarkdownPlugin, mdPluginCollapsible, mdLatexFootnotes, mdSetPositionsAndHighlight, initMathpixMarkdown, mdPluginMathJax, mdPluginHighlightCode, mdPluginText, mdPluginTOC, mdPluginAnchor, mdPluginTableTabular, mdPluginList, mdPluginChemistry, TMarkdownItOptions, optionsMathpixMarkdown, TOutputMath, TOutputMathJax, THtmlSanitize, ISmilesOptions, resetTheoremEnvironments, rest_mmd_footnotes_list, FootnoteItem, TTocStyle, THighlight, CodeHighlight, ParserErrors, Footnotes, eLabelType, ILabel, getLabelsList, getLabelByKeyFromLabelsList, clearLabelsList, normalizeLink, RenderOptions, DisableRulesGroup };
12+
export { MathpixLoader, MathpixMarkdown, MathpixMarkdownModel, mathpixMarkdownPlugin, mdPluginCollapsible, mdLatexFootnotes, mdSetPositionsAndHighlight, initMathpixMarkdown, mdPluginMathJax, mdPluginHighlightCode, mdPluginText, mdPluginTOC, mdPluginAnchor, mdPluginTableTabular, mdPluginList, mdPluginChemistry, TMarkdownItOptions, optionsMathpixMarkdown, TOutputMath, TOutputMathJax, THtmlSanitize, ISmilesOptions, resetTheoremEnvironments, rest_mmd_footnotes_list, FootnoteItem, TTocStyle, THighlight, CodeHighlight, ParserErrors, Footnotes, eLabelType, ILabel, getLabelsList, getLabelByKeyFromLabelsList, clearLabelsList, normalizeLink, RenderOptions };

lib/markdown/common/mmdRulesToDisable.js

Lines changed: 1 addition & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/markdown/common/mmdRulesToDisable.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/markdown/md-renderer-rules/render-lists.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ export declare const render_enumerate_list_open: (tokens: any, index: any, optio
33
export declare const render_item_inline: (tokens: any, index: any, options: any, env: any, slf: any) => string;
44
export declare const render_latex_list_item_open: (tokens: any, index: any, options: any, env: any, slf: any) => string;
55
export declare const render_latex_list_item_close: () => string;
6-
export declare const render_itemize_list_close: () => "</ul></li>" | "</ul>";
6+
export declare const render_itemize_list_close: () => "</ul>" | "</ul></li>";
77
export declare const render_enumerate_list_close: () => string;

lib/mathpix-markdown-model/index.d.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,10 @@ export type CodeHighlight = {
151151
auto?: boolean;
152152
code?: boolean;
153153
};
154-
export type DisableRulesGroup = {
155-
chem?: boolean;
156-
html?: boolean;
157-
asciiMath?: boolean;
158-
math?: boolean;
159-
simpleMath?: boolean;
160-
mathML?: boolean;
161-
};
162154
export type RenderOptions = {
163155
enable_markdown?: boolean;
164156
enable_latex?: boolean;
165157
enable_markdown_mmd_extensions?: boolean;
166-
disableRulesGroup?: DisableRulesGroup;
167158
};
168159
export declare enum TTocStyle {
169160
summary = "summary",

0 commit comments

Comments
 (0)