You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
v0.74.0
Breaking Changes
CodeBlockPlugin:
Instead of having a single block code-block with soft break plugin, the code-block block has now code-line block children.
It should be used along withCodeBlock
vendor upgrade:
react-dnd@13,
react-dnd-html5-backend@12
Features
CodeBlockPlugin:
Keyboard handling:
Enter: insert code-line with the same indentation as the current code line.
Tab, indent if selection is collapsed or indent all lines if it's a multi-line selection. Indenting consists of inserting 2 spaces.
Shift+Tab, remove indentation before the cursor if indented (multiple lines support).
Mod+A, if the selection is in a code block, select all text inside.
ToolbarCodeBlock and autoformat with ``` are using insertCodeBlock.
insertCodeBlock: Insert a code block: set the node to code line and wrap it with a code block. If the cursor is not at the block start, insert break before.
unwrapCodeBlock: Unwrap code line and code block.
withCodeBlock: overrides insertBreak to insert code lines.
Bug Fixes
withAutoformat: when triggerAtBlockStart: false, it should not autoformat anymore when there is invalid characters between the markup characters (e.g. ``a` was triggering the ``` markup).