-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: use diplodoc/latex-extension instead of markdown-it-katex
- added packages to peerDependencies: `@diplodoc/latex-extension`, `katex`, `markdown-it` - editor's Math extension now use `@diplodoc/latex-extension` instead of `markdown-it-katex` - Math extension removed from YfmPreset/YfmSpecsPreset - added options to Math extension Example of using a Math extension: ```js import {Math} from '@doc-tools/yfm-editor/_/extensions/yfm/Math'; // ... builder.use(Math, { // required loadRuntimeScript: async () => { await Promise.all([ import('@diplodoc/latex-extension/runtime'), import('@diplodoc/latex-extension/runtime/styles'), ]); }, // optional; if you need custom sanitizing sanitize: (html) => /* sanitize html */ html, // optional; options to be passed to katex katexOptions: {}, }); ```
- Loading branch information
Showing
15 changed files
with
248 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.