Repository navigation
Handle code spans per CommonMark - #93
Merged
Merged
Conversation
Add shared helpers in src/editor/codeSpan.ts and use them in both the converter and StepField so backticks parse the way a standard Markdown renderer does: - Spans open and close with equal-length backtick runs, so ``a`b`` is the code "a`b"; an unmatched run stays literal text - Inline code containing backticks is wrapped in a longer delimiter instead of escaped, since backslash escapes do not work inside code - One-line ```code``` reads as an inline code span, not a code block - Unescaping skips code regions, keeping backslashes literal there
Pasted Markdown is applied as the whole document, mimicking how a host app loads content on startup rather than going through the editor paste handler. Apply via button or Ctrl/Cmd+Enter.
Deploying blocks with
|
| Latest commit: |
261a5f8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://af438ffc.blocks-cno.pages.dev |
| Branch Preview URL: | https://feat-89.blocks-cno.pages.dev |
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.
No description provided.