Releases: gravity-ui/markdown-editor
Releases · gravity-ui/markdown-editor
v10.2.2
v10.2.1
v10.2.0
v10.1.0
10.1.0 (2024-02-16)
Features
- heading button that resets heading back to paragraph (#190) (475c879)
- toolbar: add property to show custom hint when action is disabled (#193) (f08366a)
- YfmCut: add border to editable yfm-cut nodes (#189) (03a1ad2)
- YfmCut: improve the behavior when creating yfm-cut (#191) (67c2300)
- YfmTabs: change text color of yfm-tabs tab placeholder (#192) (42be1aa)
Bug Fixes
v10.0.0
10.0.0 (2024-02-06)
⚠ BREAKING CHANGES
- 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 ofmarkdown-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, { // 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: {}, });
- added packages to peerDependencies: