File tree Expand file tree Collapse file tree 8 files changed +30
-18
lines changed
extensions/yfm/Color/ColorSpecs Expand file tree Collapse file tree 8 files changed +30
-18
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ 15.2.2] ( https://github.com/gravity-ui/markdown-editor/compare/v15.2.1...v15.2.2 ) (2025-02-27)
4+
5+
6+ ### Bug Fixes
7+
8+ * ** Color:** fixed import of color md plugin ([ #661 ] ( https://github.com/gravity-ui/markdown-editor/issues/661 ) ) ([ d260605] ( https://github.com/gravity-ui/markdown-editor/commit/d2606052c366d3f01c31cbb62bb460757171fa86 ) )
9+
310## [ 15.2.1] ( https://github.com/gravity-ui/markdown-editor/compare/v15.2.0...v15.2.1 ) (2025-02-26)
411
512
Original file line number Diff line number Diff line change @@ -52,15 +52,16 @@ function Editor({onSubmit}) {
5252```
5353
5454Полезные ссылки:
55- - [ Как подключить редактор в Create React App] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-install -create-react-app--docs )
56- - [ Как добавить предварительный просмотр для режима разметки] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-develop -preview--docs )
57- - [ Как добавить расширение HTML] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-connect -html-block--docs )
58- - [ Как добавить расширение Latex] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-connect -latex-extension--docs )
59- - [ Как добавить расширение Mermaid] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-connect -mermaid-extension--docs )
55+ - [ Как подключить редактор в Create React App] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-getting-started -create-react-app--docs )
56+ - [ Как добавить предварительный просмотр для режима разметки] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-getting-started -preview--docs )
57+ - [ Как добавить расширение HTML] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-extensions -html-block--docs )
58+ - [ Как добавить расширение Latex] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-extensions -latex-extension--docs )
59+ - [ Как добавить расширение Mermaid] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-extensions -mermaid-extension--docs )
6060- [ Как создать собственное расширение] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-develop-extension-creation--docs )
61- - [ Как добавить расширение GPT] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-connect -gpt--docs )
61+ - [ Как добавить расширение GPT] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-extensions -gpt--docs )
6262- [ Как добавить расширение привязки текста в Markdown] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-develop-extension-with-popup--docs )
6363
64+
6465### Разработка
6566
6667Для запуска Storybook в режиме разработки выполните следующую команду:
Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ function Editor({onSubmit}) {
5151}
5252```
5353Read more:
54- - [ How to connect the editor in the Create React App] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-install -create-react-app--docs )
55- - [ How to add preview for markup mode] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-develop -preview--docs )
56- - [ How to add HTML extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-connect -html-block--docs )
57- - [ How to add Latex extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-connect -latex-extension--docs )
58- - [ How to add Mermaid extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-connect -mermaid-extension--docs )
54+ - [ How to connect the editor in the Create React App] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-getting-started -create-react-app--docs )
55+ - [ How to add preview for markup mode] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-getting-started -preview--docs )
56+ - [ How to add HTML extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-extensions -html-block--docs )
57+ - [ How to add Latex extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-extensions -latex-extension--docs )
58+ - [ How to add Mermaid extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-extensions -mermaid-extension--docs )
5959- [ How to write extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-develop-extension-creation--docs )
60- - [ How to add GPT extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-connect -gpt--docs )
60+ - [ How to add GPT extension] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-extensions -gpt--docs )
6161- [ How to add text binding extension in markdown] ( https://preview.gravity-ui.com/md-editor/?path=/docs/docs-develop-extension-with-popup--docs )
6262
6363### Development
Original file line number Diff line number Diff line change 1+ const { pathsToModuleNameMapper} = require ( 'ts-jest' ) ;
2+ const { compilerOptions} = require ( './tsconfig.json' ) ;
3+
14/** @type {import('ts-jest/dist/types').InitialOptionsTsJest } */
25// eslint-disable-next-line no-undef
36module . exports = {
@@ -6,6 +9,7 @@ module.exports = {
69 testPathIgnorePatterns : [ 'spec.js' , 'spec.ts' ] ,
710 setupFilesAfterEnv : [ '<rootDir>tests/setup.ts' ] ,
811 moduleNameMapper : {
12+ ...pathsToModuleNameMapper ( compilerOptions . paths , { prefix : '<rootDir>/' } ) ,
913 '\\.(css|less|scss|sss|styl)$' : '<rootDir>/node_modules/jest-css-modules' ,
1014 '.+\\.(svg|png|jpg)$' : 'identity-obj-proxy' ,
1115 } ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @gravity-ui/markdown-editor" ,
3- "version" : " 15.2.1 " ,
3+ "version" : " 15.2.2 " ,
44 "description" : " Markdown wysiwyg and markup editor" ,
55 "license" : " MIT" ,
66 "repository" : {
Original file line number Diff line number Diff line change 1- import mdPlugin from 'markdown-it- color' ;
1+ import mdPlugin from 'src/ markdown-it/ color' ;
22
33import type { ExtensionAuto } from '../../../../core' ;
44import { markTypeFactory } from '../../../../utils/schema' ;
Original file line number Diff line number Diff line change 1- import color from 'markdown-it-color' ;
1+ import { colorPlugin } from 'markdown-it-color' ;
22
3- export default color ;
3+ export default colorPlugin ;
You can’t perform that action at this time.
0 commit comments