Skip to content

Commit 85769c1

Browse files
authored
chore(master): release 10.0.0 (#186)
1 parent 76974ce commit 85769c1

File tree

3 files changed

+43
-3
lines changed

3 files changed

+43
-3
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Changelog
22

3+
## [10.0.0](https://github.com/yandex-cloud/yfm-editor/compare/v9.3.1...v10.0.0) (2024-02-06)
4+
5+
### ⚠ BREAKING CHANGES
6+
7+
* feat!: use diplodoc/latex-extension instead of markdown-it-katex ([#184](https://github.com/yandex-cloud/yfm-editor/issues/184))
8+
> - added packages to peerDependencies: `@diplodoc/latex-extension`, `katex`, `markdown-it`
9+
> - editor's Math extension now use `@diplodoc/latex-extension` instead of `markdown-it-katex`
10+
> - Math extension removed from YfmPreset/YfmSpecsPreset and package root export
11+
> - added options to Math extension
12+
>
13+
> Example of using a Math extension:
14+
>
15+
> ```js
16+
> import {Math} from '@doc-tools/yfm-editor/_/extensions/yfm/Math';
17+
>
18+
> // ...
19+
>
20+
> builder.use(Math, {
21+
> // required
22+
> loadRuntimeScript: async () => {
23+
> await Promise.all([
24+
> import('@diplodoc/latex-extension/runtime'),
25+
> import('@diplodoc/latex-extension/runtime/styles'),
26+
> ]);
27+
> },
28+
> // optional; if you need custom sanitizing
29+
> sanitize: (html) => /* sanitize html */ html,
30+
> // optional; options to be passed to katex
31+
> katexOptions: {},
32+
> });
33+
> ```
34+
35+
### Features
36+
37+
* 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))
38+
39+
### Bug Fixes
40+
41+
* **YfmCut:** reduce code duplication ([#185](https://github.com/yandex-cloud/yfm-editor/issues/185)) ([76974ce](https://github.com/yandex-cloud/yfm-editor/commit/76974ceede9d2345980b7d11dcd6dc3deccf3b49))
42+
343
## [9.3.1](https://github.com/yandex-cloud/yfm-editor/compare/v9.3.0...v9.3.1) (2024-02-01)
444
545

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@doc-tools/yfm-editor",
3-
"version": "9.3.1",
3+
"version": "10.0.0",
44
"description": "YFM wysiwyg editor",
55
"scripts": {
66
"start": "npm run storybook:start",

0 commit comments

Comments
 (0)