Skip to content

Commit

Permalink
chore(master): release 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yc-ui-bot authored and d3m1d0v committed Feb 6, 2024
1 parent 76974ce commit 690bf36
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 690bf36

Please sign in to comment.