v3.4.0
Highlights
@byline/richtext-lexical— added a document-level "view as markdown source" toggle to the Lexical editor: a capital-M toolbar button (opt-in via the newmarkdownToggleeditor option) that flips the editing surface between the WYSIWYG editor and a raw markdownCodeNode. Conversion runs through a sharedBYLINE_TRANSFORMERSset that extends the stock@lexical/markdowntransformers with custom handlers for GFM pipe tables and Docusaurus-style:::note … :::admonitions (note/tip/warning/danger), so those nodes round-trip instead of being dropped. The toggle is aware of the document patch stream: a no-edit round-trip restores the exact captured editor state and records no patch, while edits made in source emit a single field change on toggle-back. The same transformer set is wired into the inline markdown-shortcut plugin so typed shortcuts and the source view stay consistent. Layout and inline-image nodes are not yet round-tripped.
Bug Fixes
@byline/richtext-lexical,@byline/admin— code blocks (and the new markdown source view) no longer wrap: lines usewhite-space: preand scroll horizontally with a line-number gutter pinned viaposition: sticky, so the gutter numbers line up with the visible lines. Fixed the min-content layout blowout the wide code block exposed — the editor's flex/grid ancestor chain through the admin form now carriesmin-width: 0end to end, so a long unwrapped line scrolls inside the code block instead of stretching the main form column under the sidebar. Also resolves a pre-existing code-block wrapping issue.
All other @byline/* packages bumped to 3.4.0 in lockstep with no behavioural changes this cycle.