GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix code spans after an unclosed backtick string by TanbirRamim · Pull Request #459 · commonmark/commonmark-java

Conversation

@TanbirRamim

@TanbirRamim TanbirRamim commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

With an unclosed backtick string before two code spans, like `` a `c`, the second code span was rendered as text. Parsing the first span overwrote the cached closer position that was recorded when the unclosed string scanned to the end, so the later opener looked unmatched. The cache is now only updated before that full scan. I added a test in SpecialInputTest, and the commonmark module tests pass. Fixes #458.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@TanbirRamim
Fix code spans after an unclosed backtick string
3b3292c
After scanning to the end for an unclosed backtick string, the parser
overwrote the cached last position of each backtick run length while
parsing later code spans. A later opener of the same length then looked
like it had no closer and was left as text.

Fixes commonmark#458
Copilot AI lite review requested due to automatic review settings September 25, 2026 03:26
Copilot AI reviewed Sep 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@robinst

robinst commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Oof, thank you, nice catch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@robinst
robinst merged commit c3bd521 into commonmark:main Oct 10, 2026
5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@robinst

robinst commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

Released in 0.30.1: https://github.com/commonmark/commonmark-java/blob/main/CHANGELOG.md#0301---2026-10-11

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@clawsweeper clawsweeper Bot mentioned this pull request Oct 13, 2026
chore(android): update Kotlin and CommonMark dependencies openclaw/openclaw#170478
Merged
@WebReflection WebReflection mentioned this pull request Oct 28, 2026
chore(jetbrains): bump commonmark to 0.30.1 Kilo-Org/kilocode#15538
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Second code span not recognised after an unclosed backtick string and another code span

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@TanbirRamim @robinst
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.