From 85769c17e1a066c7c6cc70fb81092b1e52b1f5dc Mon Sep 17 00:00:00 2001 From: YC UI Bot <95919151+yc-ui-bot@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:30:30 +0300 Subject: [PATCH] chore(master): release 10.0.0 (#186) --- CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e85ffd2f..67e169e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,45 @@ # Changelog +## [10.0.0](https://github.com/yandex-cloud/yfm-editor/compare/v9.3.1...v10.0.0) (2024-02-06) + +### ⚠ BREAKING CHANGES + +* feat!: use diplodoc/latex-extension instead of markdown-it-katex ([#184](https://github.com/yandex-cloud/yfm-editor/issues/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: + > + > ```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: {}, + > }); + > ``` + +### Features + +* feat!: use diplodoc/latex-extension instead of markdown-it-katex ([#184](https://github.com/yandex-cloud/yfm-editor/issues/184)) ([80ad40f](https://github.com/yandex-cloud/yfm-editor/commit/80ad40f822a92eebc7215a6adb21f1f1007f32c8)) + +### Bug Fixes + +* **YfmCut:** reduce code duplication ([#185](https://github.com/yandex-cloud/yfm-editor/issues/185)) ([76974ce](https://github.com/yandex-cloud/yfm-editor/commit/76974ceede9d2345980b7d11dcd6dc3deccf3b49)) + ## [9.3.1](https://github.com/yandex-cloud/yfm-editor/compare/v9.3.0...v9.3.1) (2024-02-01) diff --git a/package-lock.json b/package-lock.json index 840934b4..cd76a044 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@doc-tools/yfm-editor", - "version": "9.3.1", + "version": "10.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@doc-tools/yfm-editor", - "version": "9.3.1", + "version": "10.0.0", "license": "MIT", "dependencies": { "@bem-react/classname": "^1.6.0", diff --git a/package.json b/package.json index 43f71f31..c4c07e4b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@doc-tools/yfm-editor", - "version": "9.3.1", + "version": "10.0.0", "description": "YFM wysiwyg editor", "scripts": { "start": "npm run storybook:start",