Repository navigation
Version Packages [skip preview] - #17
Merged
Merged
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
15 times, most recently
from
September 24, 2026 03:47
c15701e to
bd2b0d3
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
September 24, 2026 03:51
bd2b0d3 to
e29b6c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@opral/zettel-lexical@2.0.0
Major Changes
26b1b91: Require Lexical 0.51. The
lexicalpeer dependency is now^0.51.0(was^0.30.0), and@lexical/history,@lexical/utilsand the new@lexical/extensiondependency are 0.51. Apps must upgradelexicalto 0.51 together with this release.Editing behavior is kept across the upgrade:
$getTextNodeOffset: invalid offset) and the key press did nothing; it still does in 0.51, so Zettel removes such ranges through a guarded path.$removeSelectedText(selection)is exported for apps that remove selected text themselves.ParagraphNode).paragraphandtextnodes loads again throughfromLexicalState(Zettel nodes now have zero-argument constructors, which Lexical 0.49+ requires).Minor Changes
registerZettelLexicalPlugin(editor, { markdownShortcuts: true }). They format**bold**/__bold__,*italic*/_italic_,`code`and~~strike~~as the closing marker is typed.-/*,1.and>at the start of a paragraph start a list or a quote. Bare http(s) URLs are linked on space, on Return and on paste, and pasting a URL over selected text links it. Undo reverts a conversion in one step.onLinkShortcuthandles Cmd/Ctrl+K on selected text or a link, with the link UI supplied by the application.underlinedecorator mark. Cmd+U in the Lexical editor underlines, and it round-trips as<u>in HTML (<u>and<ins>import) and as inline<u>…</u>in Markdown, which has no underline syntax. Formats Zettel still cannot store (sub/superscript, highlight) are ignored instead of silently splitting spans.Patch Changes
deleteSoftLine*/deleteHardLine*input types) now delete to the line boundary instead of doing nothing.exportDocumentthrewUnresolved mark. The moved spans now get a definition in their new block (reusing one with the same href), and a mark that cannot be resolved is dropped instead of breaking the document.exportDocumentrejects: empty lists and items are removed, stray text inside list items and quotes is wrapped in a paragraph, and links moved into another block keep a link definition there.loadDocumentreplaces the document under it (for example when a comment box clears itself after sending). Typing afterwards no longer creates a stray Lexical paragraph without Zettel classes, in which Shift+Enter made new paragraphs instead of hard breaks. Typing into a document without blocks creates a Zettel text block.dataTransferrather thanInputEvent.data, and remove the source text of a drag-and-drop move.@opral/zettel-ast@1.2.0
Minor Changes
underlinedecorator mark. Cmd+U in the Lexical editor underlines, and it round-trips as<u>in HTML (<u>and<ins>import) and as inline<u>…</u>in Markdown, which has no underline syntax. Formats Zettel still cannot store (sub/superscript, highlight) are ignored instead of silently splitting spans.@opral/zettel-html@1.2.0
Minor Changes
underlinedecorator mark. Cmd+U in the Lexical editor underlines, and it round-trips as<u>in HTML (<u>and<ins>import) and as inline<u>…</u>in Markdown, which has no underline syntax. Formats Zettel still cannot store (sub/superscript, highlight) are ignored instead of silently splitting spans.Patch Changes
bfdef82: Keep typed whitespace visible in editable Zettel content: a trailing space moves the caret, repeated spaces do not collapse, and Chromium no longer stores U+00A0 in place of typed spaces.
fa8644b: Ignore document metadata (
<meta>,<link>,<base>,<title>) when importing HTML, so pasting from a web page in Chromium no longer adds a read-only<meta charset="utf-8">block.041a823: Import an inline element that wraps block content (as Google Docs does with
<b id="docs-internal-guid-…">) as a container, so pasted paragraphs and lists stay editable instead of becoming read-only inline HTML.3d43d21: Read formatting from inline styles when importing HTML, so pasting from Google Docs or Word online keeps bold, italic, underline and strike-through (
font-weight,font-style,text-decoration). An explicitfont-weight:normalcancels an ancestor's bold, so Google Docs'<b style="font-weight:normal" id="docs-internal-guid-…">wrapper no longer turns plain words bold. A<br>between blocks imports as an empty paragraph instead of a paragraph holding a hard break, and theApple-interchange-newlinebreak that ends a copied selection is dropped.Clean up Word desktop and Outlook clipboard HTML on import. Office namespace tags (
<o:p>,<w:*>,<v:*>,<st1:*>and otherprefix:nametags) are no longer kept as read-only inline HTML: empty ones are dropped and the others keep only their content. Word list paragraphs (MsoListParagraphwithmso-list:l0 level1 …) import as real bullet or numbered lists, nested by level, without the literal·/1.marker, and hiddenmso-hide:alltext is dropped. Word's line-wrapped HTML has its whitespace collapsed the way a browser renders it.e76d0ec: Style inline code as a chip with
--zettel-code-backgroundand--zettel-code-color, the same in the editor and in rendered HTML. Before, inline code only switched to a monospace font, and only code blocks used the code colors. Code inside code blocks is not styled as a chip, and linked code keeps the link color.Updated dependencies [e77dd8f]
@opral/zettel-markdown@1.2.0
Minor Changes
underlinedecorator mark. Cmd+U in the Lexical editor underlines, and it round-trips as<u>in HTML (<u>and<ins>import) and as inline<u>…</u>in Markdown, which has no underline syntax. Formats Zettel still cannot store (sub/superscript, highlight) are ignored instead of silently splitting spans.Patch Changes