You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: use diplodoc/latex-extension instead of markdown-it-katex (#184)
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 and package root export
added options to Math extension
Example of using a Math extension:
import{Math}from'@doc-tools/yfm-editor/_/extensions/yfm/Math';// ...builder.use(Math,{// requiredloadRuntimeScript: async()=>{awaitPromise.all([import('@diplodoc/latex-extension/runtime'),import('@diplodoc/latex-extension/runtime/styles'),]);},// optional; if you need custom sanitizingsanitize: (html)=>/* sanitize html */html,// optional; options to be passed to katexkatexOptions: {},});
Features
feat!: use diplodoc/latex-extension instead of markdown-it-katex (#184) (80ad40f)