Releases: StackExchange/Stacks-Editor
Releases · StackExchange/Stacks-Editor
v0.7.0
⚠ BREAKING CHANGES
- tag-link: TagLinkOptions.allowNonAscii and TagLinkOptions.allowMetaTags have been removed in
favor of the consumer handling all validation using the new TagLinkOptions.validate option
TagLinkOptions.renderer has been renamed to TagLinkOptions.render
Features
- commands: change all shortcut labels to use capital letters (#204) (0bc5c65), closes #166
- commonmark-editor: move commonmark syntax highlighting to a new Lezer based system (#176) (693a402), closes #21
- link-editor: open link on Mod-Click (#130) (ea8da4b), closes #62
- markdown-serializer: prefer sorting numeric link references in number order (20f338a), closes #163
- markdown-serializer: serialize code_block nodes to use fences by default (f658969), closes #168
- menu: tweak active/selected button styling (303e494)
- stacks-editor: change the mode toggle to a radio powered button group instead of a checkbox (2df7f00)
- tag-link: add all-purpose TagLinkOptions.validate function (6ae6936)
Bug Fixes
- code-paste-handler: fix "global is not defined" error when compiling with Vite (b7aaf5c), closes #159
- image-upload: dropped/pasted images now properly load into the image uploader (0bf0bdf), closes #167
- image-upload: improve image-upload pane layout on small viewport widths (c47728a), closes #202
- markdown-serializer: fix incorrect newline serialization of html_inline and html_block (664e034), closes #152
- menu: fix crashes when a menu entry is null (87063b9)
- rich-text-editor: allow any block node inside list items (#157) (f59b72f), closes #63
v0.6.1
v0.6.0
Features
- commonmark-editor: add basic static markdown preview support (#146) (bb9f862), closes #115
- commonmark-editor: change copy behavior of commonmark content to be plain text instead of code (485855d)
- commonmark-editor: detect and format pasted code like rich-text mode (#147) (9d9841a), closes #135
- editor-plugin: add external plugin support (#141) (aca011f)
- link-editor: change link editor from a popover to a plugin pane (#142) (3e4c847), closes #19
Bug Fixes
v0.5.1
Features
- image-upload: add
imageUpload.allowExternalUrls
option to allow uploads from external urls (4b994d5), closes #43 - image-upload: add
imageUpload.embedImagesAsLinks
setting support (d778070), closes #61 - menu: add keyboard shortcut labels to tooltips (#127) (90d427a), closes #46
- plugins: add new interface-manager plugin to coordinate different plugins' interfaces (166b486)
- plugins: add placeholder to empty input (#116) (da2963e), closes #103
- rich-text-editor: cycle heading levels on keyboard shortcut (#131) (3be01a0), closes #45
Bug Fixes
v0.5.0
⚠ BREAKING CHANGES
- Stacks 1.0 contains breaking changes
Features
- add basic description list (
<dl>
,<dd>
,<dt>
) support (4ec9f36) - add heading dropdown menu (0f1a096), closes #5
- add localization support (e9ae75e), closes #60
- add mod+e keybinding to insert tables (#8) (d3c6975)
- add text only link preview support (#94) (a49d73c)
- allow users to exit certain marks and code blocks by using the arrow keys (e37a959), closes #64
Bug Fixes
- allow headings to contain any inline nodes, such as soft/hard line breaks (e709127), closes #107
- allow unformatted text to inherit formatting when pasted into formatted content (6254acf), closes #48
- backslash escaped hardbreaks now detect and serialize correctly (1bbbb89)
- change editor target to display: flex so the inner editor grows when resized (9be120f), closes #88
- change mod+a to only select markdown text, excluding the root node itself (d3598f5), closes #24
- disallow any marks or nodes inside code_blocks (439bed6), closes #39
- ensure all generated element ids are unique to prevent clashes with multiple editors (#118) (859f315)
- fix
global
runtime crashes when bundling as an es6 module (1d2e7f1), closes #108 - fix table serialization having incorrect trailing whitespace (5a4c9b0)
- increase button contrast in high contrast mode (#123) (f769642), closes #86
- link preview decorations not showing on the correct node (16cfde3), closes #37
- on horizontal_rule insert, append and prepend paragraph nodes as needed (#124) (bda2637), closes #26
- toggle heading only when same level (#125) (7b5b5c1), closes #105
- treat images as inline (#121) (00cd3ea), closes #53
- update all keybinds to work with capslock turned on (27a785a), closes #90
- update to Stacks 1.0.1 (#117) (b7b44bc)
v0.4.2
Features
- add ability to pass custom validateLink method to parser (124762a)
- add deserialization support for reference links (22e84dd), closes #29
- add StacksEditor:image-uploader-show event (a9ac79c)
Bug Fixes
- add aria-labels to icon-only buttons (#98) (b69c3e0)
- add html render support for hard breaks/br tags (a360b6d)
- add missing import reference for _stacks-mixins (#94) (af1c6c5)
- add not-allowed cursor to the disabled editor (#100) (1933f6f)
- always add a paragraph to the end of the doc when inserting a block element at the end (2df6573), closes #18
- fix table insertion in the middle of text incorrectly adding trailing paragraph (84fc550)
- fix table menu entry always manipulating the menu icon of the last initialized editor instance (cc592c1)
- markdown-parser: do not autolink emails without the "mailto:" prefix (#85) (1a8b6cc)
- add support for serializing node attributes to html (0a00644)
- render html versions of blockquote, p and header tags back to markdown (746743e)
v0.4.1
v0.4.0
v0.3.0
⚠ BREAKING CHANGES
- dependencies: bumps highlight.js peerDependency to breaking 11.0.x