Skip to content

Conversation

chrispy-snps
Copy link
Collaborator

Fixes #226.

When the contents of a <code> tag contain N consecutive backticks,

  • The resulting Markdown will use N+1 backticks as a delimiter.
  • An additional leading and trailing space are added inside the span to avoid backtick ambiguity.
    • These spaces are ignored by most Markdown parsers.

For examples, see the unit tests included in this pull request.

@chrispy-snps chrispy-snps force-pushed the chrispy/support-backticks-in-code branch from eb3a706 to 8ad19ef Compare June 29, 2025 12:32
@chrispy-snps chrispy-snps requested a review from AlexVonB June 29, 2025 12:33
@chrispy-snps chrispy-snps changed the title support backticks in <code> spans (#226) Support backticks in <code> spans (#226) Jun 29, 2025
Copy link
Collaborator

@AlexVonB AlexVonB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not know `this` is possible, nice!

@chrispy-snps chrispy-snps merged commit 48724e7 into matthewwithanm:develop Jun 29, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support backticks inside inline code spans
2 participants