Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(master): release 10.0.0 #186

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)


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",
Loading