Offer inline code in step lines, like Editor.js does (#54) #59
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba!59
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/54-inline-tools-step-lines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #54
Step lines had bold, italic and links, but not Editor.js's fourth inline tool, inline code. Step lines aren't an Editor.js block (ADR-0005), so the line editor gets its own version.
StepLinesEditor.tsx): an inline code button in the line toolbar and Editor.js's Ctrl/Cmd+Shift+M shortcut. LikeinlineCodeTool.ts, they wrap the selection, unwrap an inline code it is in, and never nest one.stepLines.ts):parseLineTextkeeps<code>instead of stripping it. Search and annotation labels use the plain text, so no markup shows there.globals.css): code in the reading view and in the line editor looks like code in rich text. The rich text code rules were merged into one shared rule.Tests
stepLinesFromSubmissionkeeps<code>.Both failed before the change. All 286 unit and 16 e2e tests pass.
Left out
toggleInlineCodeandinlineCodeTool.ts.🤖 Generated with Claude Code