14.4.0 (2024-11-22)
- add directiveSyntax experiment (ed85f71)
- YfmCut: support directiveSyntax experiment (da8fef7)
- YfmFile: import plugin and consts from file-extension (#488) (3d68c53)
14.3.1 (2024-11-21)
14.3.0 (2024-11-20)
14.2.3 (2024-11-15)
14.2.2 (2024-11-14)
14.2.1 (2024-11-13)
14.2.0 (2024-11-13)
- CodeBlock: removed automatic language identification for performance optimization (#468) (031504b)
- ImgSize, markup: rework image styling to get more control (#451) (526074d)
- markup: convert pasted urls to images (#469) (720215b)
- Image: convert pasted image urls to images (#464) (64d389e)
14.1.0 (2024-11-11)
- emoji: updated emoji suggest popup logic (#462) (844667d)
- lists: added input rule for ordered lists with parenthesis (#461) (05ba62d)
14.0.3 (2024-11-05)
14.0.2 (2024-11-02)
- bundle: file upload handler is not passed in wysiwyg mode (#453) (46fbe46)
- deps: sync version of markdown-it-attrs with @diplodoc/transform (#457) (3f7e260)
- markup: correct key formatting for codemirror keymap (#456) (2f8f91d)
- markup: fix hotkey Esc not working in markup mode (#455) (28bc59f)
14.0.1 (2024-10-25)
14.0.0 (2024-10-23)
- bundle: remove default deps for useMemo inside useMarkdownEditor (#438)
- import yfmTabs plugin from separate tabs-extension package
- import yfmCut plugin from separate cut-extension package
- bump diplodoc/transform to v4.33.0 and update import of runtime styles and scripts
- deps: updated transform version 4.32.2 (#417)
- extensions: move YfmHtmlBlock extension from yfm to additional folder
- extensions: move FoldingHeading extension from yfm to additional folder
- extensions: move Math extension from yfm to additional folder
- extensions: move Mermaid extension from yfm to additional folder
- extensions: move FoldingHeading extension from yfm to additional folder (e5f34d5)
- extensions: move Math extension from yfm to additional folder (f6531ac)
- extensions: move Mermaid extension from yfm to additional folder (79eb06b)
- extensions: move YfmHtmlBlock extension from yfm to additional folder (8499538)
- bump diplodoc/transform to v4.33.0 and update import of runtime styles and scripts (6dbbc52)
- bundle: group editor settings by scope (#433) (d4097c2)
- bundle: pass md options to renderPreview callback (#435) (2676b45)
- bundle: remove default deps for useMemo inside useMarkdownEditor (#438) (573c82e)
- deps: updated transform version 4.32.2 (#417) (56e53fb)
- import yfmCut plugin from separate cut-extension package (fd43a36)
- import yfmTabs plugin from separate tabs-extension package (6f229f1)
- update codemirror deps (#430) (40d4a98)
- update prosemirror deps (#429) (27ce483)
- YfmTabs: fixed switching between tabs in wysiwyg mode (736fc0a)
13.25.1 (2024-10-18)
13.25.0 (2024-10-15)
- hotKey cmd + a shows the tooltip (#422) (7dd24ef)
- MarkdownEditorView: prevent the default preview shortcut behaviour (#421) (1fa5c90)
13.24.0 (2024-10-11)
- bundle: submit in preview mode: remove outline and return edit mode on submit (#418) (e8ed1ba)
- math: fixed right direction (#406) (f01277f)
13.23.0 (2024-10-09)
13.22.0 (2024-10-08)
13.21.4 (2024-10-02)
- bundle: scroll to top of screen after calling moveCursorToLine method in wysiwyg mode (#397) (bf570b6)
13.21.3 (2024-10-02)
13.21.2 (2024-09-30)
13.21.1 (2024-09-30)
13.21.0 (2024-09-26)
- CodeBlock: unification of code block creation logic (#384) (d139318)
- markup: update codemirror and add correct enter hotkeys (#382) (eef229a)
13.20.0 (2024-09-26)
13.19.0 (2024-09-25)
- remove marks from breaks that are first node inside that mark (#378) (6b148fd)
- YfmTable: revert serialization logic for yfm-table row and cell (#380) (5d0e931)
13.18.2 (2024-09-23)
13.18.1 (2024-09-19)
- code: fixed paste in code and block code (#370) (f1f0068)
- react-utils: fixed useNodeResizing (#372) (4f8977a)
- yfm: correction of the gpt popup (#367) (2adfe7f)
13.18.0 (2024-09-13)
- support colspan and rowspan in table actions (#356) (65e4327)
- yfm: add GPT extensions (#361) (74d6e67)
13.17.1 (2024-09-12)
- ImgSize: added ResizableImage (#338) (66ca04d)
- packages: fixed @diplodoc/transform version (#364) (054611a)
13.17.0 (2024-09-05)
13.16.0 (2024-08-29)
- bundle: scroll to top of screen when scrolling to line in markup mode (#350) (bd85a1c)
- yfmHtmlBlock: updated css white list (#349) (049dc29)
13.15.0 (2024-08-29)
- YfmHeading: ignore anchor links inside headings when parse dom (#348) (a50d8a7)
- yfmHtmlBlock: fixed types (#344) (a762690)
13.14.0 (2024-08-21)
- beforeEditorModeChange (experimental) (#341) (7a0bdcb)
- yfmHtmlBlock: updated @diplodoc/html-extension (#343) (4a6df56)
13.13.0 (2024-08-20)
13.12.1 (2024-08-15)
13.12.0 (2024-08-15)
13.11.0 (2024-08-15)
13.10.0 (2024-08-09)
13.9.0 (2024-08-05)
13.8.0 (2024-08-01)
- bundle: improve drilling of codemirror config (#323) (9bf6d5d)
- support YfmLangOptions drilling to markup editor (#303) (4564256)
- FoldingHeading: correct position of separator on bottom edge of section (#322) (5fff3ca)
- view: add support for opening folding-headings in useYfmShowElemWithId() hook (#320) (05c363b)
13.7.0 (2024-08-01)
13.6.1 (2024-08-01)
13.6.0 (2024-08-01)
13.5.3 (2024-07-29)
13.5.2 (2024-07-29)
- forms: added utils re-export (#310) (13733ed)
- yfmHtmlBlock: added sanitize prop to YfmHtmlBlockView (#307) (a4ad5cd)
13.5.1 (2024-07-26)
- yfmHtmlBlock: added sanitize prop to YfmHtmlBlock wysiwyg extension (#304) (d620fe7)
- yfmHtmlBlock: added sanitize prop to YfmHtmlBlock wysiwyg extension (#306) (f3a480e)
13.5.0 (2024-07-26)
13.4.2 (2024-07-25)
- main: fix en yfm syntax documentation link (#300) (9b80812)
- table: fixed scroll for wide table inside the cut (#296) (33970cd)
13.4.1 (2024-07-19)
- presets: fixed yfm and full presets (#294) (1cc1881)
- table-utils: fixed remove first column (#291) (a27d454)
13.4.0 (2024-07-15)
13.3.0 (2024-07-15)
- bundle: prevent loss of focus after pressing tab or shift+tab (#287) (63feec2)
- pass extra codemirror extensions (#289) (4996b12)
13.2.0 (2024-07-10)
- SelectionContext: support for hiding menu items when action in selection menu is disabled (#283) (6948cc4)
- YfmHeading: support folding attribute (#285) (100a548)
13.1.2 (2024-06-25)
- Lists: fixed merging of nested lists (#276) (2c435bd)
- Lists: preserve markup of list items (#278) (70ee410)
13.1.1 (2024-06-21)
13.1.0 (2024-06-10)
13.0.0 (2024-06-07)
- transfer connection of markdown-it-attrs plugin to YfmConfigs extension (#263)
- bundle: rename editorType ––> editorMode (#260)
- bundle: rename yfm ––> markdown in variable and file names (#259)
- bundle: remove deprecated YfmEditor component (#258)
- change package name (#254)
- rename yfm -> md in core and dependent modules (#249)
- update markup mode to codemirror6 (#234)
- add editor presets (#265) (a2d8153)
- add g-md-editor classname to editor dom elem, change default prefix for internal classnames (#257) (82b42ce)
- add re-export from bundle to root export (#267) (86fcb00)
- add re-export of codemirror core modules (#266) (9ccf3b1)
- bundle: remove deprecated YfmEditor component (#258) (db3749a)
- bundle: rename editorType ––> editorMode (#260) (bd0afe8)
- bundle: rename yfm ––> markdown in variable and file names (#259) (c63381f)
- change package name (#254) (85cc2af)
- Lists: add auto merging of adjacent list of same type (#241) (c02de80)
- note, tabs: added leave block logic for second enter (#248) (ed8ba66)
- rename yfm -> md in core and dependent modules (#249) (e12abda)
- transfer connection of markdown-it-attrs plugin to YfmConfigs extension (#263) (2816c18)
- update markup mode to codemirror6 (#234) (5b416b2)
- CodeBlock: Fixed code insert (#251) (df9848e)
- don't split code_block in lists when pressing enter key (#243) (c494301)
- forms: deleted unused iframe_ keysets (#242) (e6d6ba4)
- ImageForm: updated autofocus logic, added useAutoFocus (#245) (c4da6bd)
- Link: ascape parentheses in link url (#244) (046dd2e)
- react-utils: fix for useNodeEditing and useNodeHover hooks (#239) (48d018d)
12.4.0 (2024-04-19)
- BaseKeymap: remove keymap for joinUp and joinDown commands (#233) (c34ef8a)
- toolbar, bundle: add ToolbarButtonPopup type and use it for link, image and file actions in murkup mode (#228) (0040e2a)
- fixed position of HelpPopover (#230) (bb9c9b6)
- table-utils: fix deleting columns in tables with nested tables (#231) (64d81a6)
- YfmTableAdditions: fix positioning of floating buttons of yfm-table (#232) (52ef503)
12.3.0 (2024-04-17)
- support button changes in uikit 6.11.0 (#227) (cdbc022)
- support uploading files dragged and dropped from device in markup mode (#226) (c60f72e)
12.2.1 (2024-04-09)
12.2.0 (2024-04-08)
- Checkbox: improve checkbox insertion (#220) (cbcebf3)
- HorizontalRule: improve horizontal line insertion (#218) (71813a2)
12.1.0 (2024-04-05)
- added colors from uikit, added nore exports (#216) (feefd82)
- support uploading files dragged and dropped from device (#214) (3367f4b)
12.0.1 (2024-04-04)
- fixed style, exports and typings after adding more functionality (#213) (ad320a7)
- LinkEnhance: show creation widget when create link with whitespaces at end of selected text (#211) (978a828)
- Placeholder: fixed issue with displaying a fake cursor in Safari (#212) (c9c6fb5)
- SelectionContext: dont show selection menu until mouse is pressed (#209) (cde768c)
12.0.0 (2024-03-26)
- added more functionality (#207)
11.0.0 (2024-03-04)
- update @gravity-ui/uikit to verison 6 (#205)
10.2.3 (2024-03-01)
- Clipboard: copy only text content from codeblock (#204) (67e55fc)
- CodeBlock: fixed parsing of language from token.info and added support for different code_block markup (#202) (85509ff)
10.2.2 (2024-02-22)
- Table: correct serialization of the table inside blockquote (#199) (9d27a3f)
- YfmTabs: correct serialization of yfm-tabs inside blockqoute (#201) (e2f5d27)
10.2.1 (2024-02-20)
10.2.0 (2024-02-20)
- adding a link to image when pasting a link on selected image node (#194) (c64dd68)
- option to not highlighting active list button and toParagraph action improvement (#196) (35d0219)
10.1.0 (2024-02-16)
- heading button that resets heading back to paragraph (#190) (475c879)
- toolbar: add property to show custom hint when action is disabled (#193) (f08366a)
- YfmCut: add border to editable yfm-cut nodes (#189) (03a1ad2)
- YfmCut: improve the behavior when creating yfm-cut (#191) (67c2300)
- YfmTabs: change text color of yfm-tabs tab placeholder (#192) (42be1aa)
10.0.0 (2024-02-06)
- feat!: use diplodoc/latex-extension instead of markdown-it-katex (#184)
- added packages to peerDependencies:
@diplodoc/latex-extension
,katex
,markdown-it
- editor's Math extension now use
@diplodoc/latex-extension
instead ofmarkdown-it-katex
- Math extension removed from YfmPreset/YfmSpecsPreset and package root export
- added options to Math extension
Example of using a Math extension:
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: {}, });
- added packages to peerDependencies:
9.3.1 (2024-02-01)
9.3.0 (2024-01-26)
- core: allow to parse blocks with noCloseToken=true with content from children tokens (#180) (d362717)
9.2.0 (2024-01-25)
- add re-export of markdown-it plugins (#179) (affd462)
- added ability to pass marks to updateAttributes method of ReactNodeView (#177) (93e63de)
9.1.1 (2023-12-26)
9.1.0 (2023-12-21)
- add core submodule to package exports (#171) (2c967b5)
- add re-export of prosemirror-test-builder (#174) (6eaf21b)
- update prosemirror packages (#173) (bee420d)
9.0.0 (2023-12-20)
- add package exports (#169)
8.2.1 (2023-12-18)
8.2.0 (2023-12-11)
8.1.0 (2023-12-07)
8.0.0 (2023-12-01)
- content node for yfm note (#161)
7.2.0 (2023-11-20)
7.1.0 (2023-11-17)
- YfmCut: auto-opening yfm-cut when dragging over it (#152) (a7612c3)
- Add data-line attrs support for heading and paragraph (#152)
7.0.0 (2023-11-09)
- replace @doc-tools/[email protected] with @diplodoc/[email protected] (#151)
- replace @doc-tools/[email protected] with @diplodoc/[email protected] (#151) (b6c0c73)
6.7.0 (2023-10-31)
- Breaks: parse <br/> to preffered break (#147) (8253496)
- Breaks: replace double breaks with new paragraph (#149) (2189de1)
6.6.0 (2023-10-27)
6.5.0 (2023-10-26)
6.4.0 (2023-10-25)
- CodeBlock: add custom tab key press handling in the codeblock (fb3284c)
- CodeBlock: do not select codeblock node when clicking on it (67bad99)
6.3.0 (2023-10-10)
- correct parsing of
\n
in inline code (#135) (ebf37d7) - selected node styles appear only if ProseMirror is focused (#138) (dd873de)
- trying to add a row or column to an outer table caused it to be added into inner one (#139) (41d4a46)
6.2.0 (2023-09-29)
6.1.4 (2023-09-25)
6.1.3 (2023-09-23)
6.1.2 (2023-09-20)
6.1.1 (2023-09-04)
6.1.0 (2023-09-04)
6.0.0 (2023-07-28)
- update to uikit@5, node@18, storybook@7; remove assets (#116)
5.6.0 (2023-07-04)
5.5.1 (2023-06-29)
5.5.0 (2023-06-29)
5.4.0 (2023-06-26)
- add re-export serializeForClipboard function from prosemirror-view (#107) (3574ea2)
- allow selection for list-item, heading and checkbox (#109) (e0ade05)
5.3.0 (2023-06-16)
5.2.0 (2023-05-22)
- Math: add background on hover (#103) (ab869cd)
- Selecion: support backspace action for fake paragraph (#100) (efaa359)
- YfmCut: add a border when hovering (#102) (b316f08)
- YfmCut: allow inline nodes in cut title (1408cee)
- YfmNote: allow inline nodes in note title (8b40679)
5.1.0 (2023-04-12)
5.0.0 (2023-04-11)
- Math: add math hints
- add i18n (4e2c49c)
- add ReactRenderer extension (d73eb8e)
- Blockquote: support for joining the previous blockquote (#90) (9d055c4)
- Lists: support for joining the previous list (#92) (3e38618)
- Math: add math hints (9d7293d)
4.5.0 (2023-03-21)
- Lists: return true from toList command when selection is in list with current list type (#88) (74dd90c)
4.4.1 (2023-03-16)
4.4.0 (2023-03-13)
4.3.0 (2023-02-27)
4.2.0 (2023-02-15)
- apllying codemark when typing text between backticks (#75) (50560f2)
- Clipboard: get markup from html that has only text (#78) (6a4628f)
- HorizontalRule: add input rules for horizontal line (#77) (d11e9e0)
4.1.0 (2023-02-09)
- add more items from Cursor and Selection extensions to root export (#73) (8499232)
- Placeholder: don't render placeholder when content is null (#72) (a91d1cd)
4.0.1 (2023-02-07)
- Selection: fix creation of fake cursor on edges of blocks with flag gapcursor:false (#71) (63dcdf2)
- YfmCut: allow editing of yfm-cut title (#69) (b440844)
4.0.0 (2023-02-01)
- toolbar: update @gravity-ui/[email protected] and use Hotkey and ActionTooltip components in Toolbar (#66)
- Selection, Cursor: rewrite code for fake-paragraph behaviour (#65)
- Selection, Cursor: rewrite code for fake-paragraph behaviour (#65) (991107a)
- toolbar: update @gravity-ui/[email protected] and use Hotkey and ActionTooltip components in Toolbar (#66) (c67453f)
3.7.0 (2023-02-01)
- parser and serializer props (190384b)
- serialization of selection content when creating codeblock (#67) (c170560)
3.6.0 (2023-01-25)
- improvements for tabs removement (f21f6f5)
3.5.0 (2023-01-24)
3.4.5 (2023-01-24)
3.4.4 (2023-01-23)
3.4.3 (2023-01-23)
3.4.2 (2022-12-16)
- blockquote button breaks when selection has 0 depth (2a38575)
3.4.1 (2022-12-13)
3.4.0 (2022-12-09)
- Math: improve ux with inline math (#43) (e09dca4)
- YfmCut: auto openning yfm-cut if selection is inside cut's content (#46) (f3084f8)
- YfmCut: don't open/close yfm-cut by clicking on the title (#47) (1e13715)
3.3.0 (2022-11-23)
- parse html from the clipboard when pasting (#40) (b27e9b8)
- YfmNote: do not fill in the note title when creating a new note (#41) (f65b342)
- YfmTable: clear selected table cells and delete empty rows or a table when the backspace button is pressed (d4e1623)
- core: escape the pipe symbol during serialization to markdown (#36) (f766021)
- re-export MathNode classes (#38) (b4ee9b4)
3.2.0 (2022-11-10)
- add support to linkify urls with custom tlds (#31) (1b0d44a)
- Clipboard: insert markup, html and text of the selected fragment into the clipboard (#30) (f438588)
- Clipboard: smarter copying (#33) (a458d46)
- core: added priority for marks in extension builder (395f97b)
- Link: when pasting, create a link with the pasted URL and selected text (#28) (1230601)
- Checkbox: write placeholder content when label constains only whitespace characters (#32) (3ded049)
- Code: set lowest priority for inline code mark (b4f9ae0)
3.1.0 (2022-10-27)
- core: when appending replace last empty paragraph with new content and add empty paragraph after (#25) (a7333ad)
- Lists: breaking the list when deleting a list item (#26) (a5e5362)
3.0.0 (2022-10-14)
- core: use one builder for all plug-in extensions
- core: add context to extension builder (#22) (dc66438)
- core: move plugins sorting to the extension builder (fcc4d35)
- core: use one builder for all plug-in extensions (66de15e)
- table arrow controls (3e00e6a)
2.1.0 (2022-10-05)
- added new field for selection interface (4ccfdaa)
- core: escape corner brackets during serialization (#17) (01ad8a8)
- toolbar: add tooltip to list-buttons (af158ff)
- tooltip: add delay before open and close tooltip (2c17593)
2.0.0 (2022-10-04)
- update to uikit@3
1.2.0 (2022-09-28)
- YfmCut: move cursor to end of cut's title when press backspace in the beginning of its content (007773a)
- YfmCut: remove cut on press backspace in the beginning of his title (b715b38)
- YfmNote: move cursor to end of note's title when press backspace in the beginning of its content (a485fc9)
- YfmNote: remove note on press backspace in the beginning of his title (c1865ed)
1.1.1 (2022-09-26)
1.1.0 (2022-09-22)
- hints (14360de)
- clipboard: parse text without processing attributes (65417b4)