René's URL Explorer Experiment


Title: Second code span not recognised after an unclosed backtick string and another code span · Issue #458 · commonmark/commonmark-java · GitHub

Open Graph Title: Second code span not recognised after an unclosed backtick string and another code span · Issue #458 · commonmark/commonmark-java

X Title: Second code span not recognised after an unclosed backtick string and another code span · Issue #458 · commonmark/commonmark-java

Description: Steps to reproduce the problem (provide example Markdown if applicable): `` `a` `c` The same through the API, with two neighbouring inputs that render correctly, to show the trigger: import org.commonmark.parser.Parser; import org.common...

Open Graph Description: Steps to reproduce the problem (provide example Markdown if applicable): `` `a` `c` The same through the API, with two neighbouring inputs that render correctly, to show the trigger: import org.com...

X Description: Steps to reproduce the problem (provide example Markdown if applicable): `` `a` `c` The same through the API, with two neighbouring inputs that render correctly, to show the trigger: import org.com...

Opengraph URL: https://github.com/commonmark/commonmark-java/issues/458

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Second code span not recognised after an unclosed backtick string and another code span","articleBody":"Steps to reproduce the problem (provide example Markdown if applicable):\n\n```\n`` `a` `c`\n```\n\nThe same through the API, with two neighbouring inputs that render correctly, to show the trigger:\n\n```java\nimport org.commonmark.parser.Parser;\nimport org.commonmark.renderer.html.HtmlRenderer;\n\npublic class Main {\n    public static void main(String[] args) {\n        Parser parser = Parser.builder().build();\n        HtmlRenderer renderer = HtmlRenderer.builder().build();\n        for (String md : new String[] {\"`` `a` `c`\", \"`` `a`\", \"`a` `c`\"}) {\n            System.out.print(md + \"  ->  \" + renderer.render(parser.parse(md)));\n        }\n    }\n}\n```\n\nExpected behavior:\n\n```\n\u003cp>`` \u003ccode>a\u003c/code> \u003ccode>c\u003c/code>\u003c/p>\n```\n\nThis is what the reference implementation, commonmark.js 0.31.2, gives for all three inputs: the ``` `` ``` has no\nclosing double backtick and stays literal, and both `` `a` `` and `` `c` `` are code spans (spec 0.31.2, Code spans).\n\nActual behavior:\n\n```\n\u003cp>`` \u003ccode>a\u003c/code> `c`\u003c/p>\n```\n\nThe full output of the program above:\n\n```\n`` `a` `c`  ->  \u003cp>`` \u003ccode>a\u003c/code> `c`\u003c/p>\n`` `a`  ->  \u003cp>`` \u003ccode>a\u003c/code>\u003c/p>\n`a` `c`  ->  \u003cp>\u003ccode>a\u003c/code> \u003ccode>c\u003c/code>\u003c/p>\n```\n\nThe second code span, `` `c` ``, is left as text. It takes all three parts: with only the unclosed ``` `` ``` and one\ncode span, or with the two code spans and no unclosed string, the output is correct. Text between the parts changes\nnothing, and every further code span of the same length stays text too: `` `a` `c` `e` `` after the unclosed string\ngives `` \u003ccode>a\u003c/code> `c` `e` ``.\n\nTested on commonmark 0.30.0 from Maven Central and on current main (b89e72f).\n\nBTW, this was found by an automated program that writes property-based tests for various open source projects using [hegel](https://github.com/hegeldev/hegel-java) (but it has been reviewed by hand before reporting). We've also potentially found (but not yet hand validated) 51 other bugs in commonmark-java. You can see the tests at https://github.com/hegeldev/hegel-zoo/tree/main/targets/java/commonmark-java. Let us know if you would like us to file the other bugs found and/or contribute the tests. NB the tests are currently LLM generated and probably not yet suitable for inclusion as is, but we're happy to help get them into a better state if you want them.\n","author":{"url":"https://github.com/DRMacIver","@type":"Person","name":"DRMacIver"},"datePublished":"2026-09-22T09:56:08Z","url":"https://github.com/commonmark/commonmark-java/issues/458"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a83c2569-d2b2-b760-40fa-75859c09db28
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE124:322337:46AFA5:604DC3:6AFBBB0B
html-safe-nonce4bb73757fc5e10991b08941c48ddf9aa1429c09b7fdc36c1610c532ce060dcfe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTI0OjMyMjMzNzo0NkFGQTU6NjA0REMzOjZBRkJCQjBCIiwidmlzaXRvcl9pZCI6IjY5NTA5MzE4MDE4NDU3NzUxMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac44f17cf1dcd009e2533c536b84866b3af64bdcd75a69452e7fe0f1e0410397d9
hovercard-subject-tagissue:5537966252
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commonmark/commonmark-java/458/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7f7454d88328bf1ef43f4bb6f1ef568920c9accf6d3b47cde62c1b86f0691c81/commonmark/commonmark-java/issues/458
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7f7454d88328bf1ef43f4bb6f1ef568920c9accf6d3b47cde62c1b86f0691c81/commonmark/commonmark-java/issues/458
og:image:altSteps to reproduce the problem (provide example Markdown if applicable): `` `a` `c` The same through the API, with two neighbouring inputs that render correctly, to show the trigger: import org.com...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDRMacIver
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
go-importgithub.com/commonmark/commonmark-java git https://github.com/commonmark/commonmark-java.git
octolytics-dimension-user_id8661225
octolytics-dimension-user_logincommonmark
octolytics-dimension-repository_id39477878
octolytics-dimension-repository_nwocommonmark/commonmark-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id39477878
octolytics-dimension-repository_network_root_nwocommonmark/commonmark-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/commonmark/commonmark-java/issues/458#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommonmark%2Fcommonmark-java%2Fissues%2F458
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommonmark%2Fcommonmark-java%2Fissues%2F458
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=commonmark%2Fcommonmark-java
Reloadhttps://github.com/commonmark/commonmark-java/issues/458
Reloadhttps://github.com/commonmark/commonmark-java/issues/458
Reloadhttps://github.com/commonmark/commonmark-java/issues/458
commonmarkhttps://github.com/commonmark
commonmark-javahttps://github.com/commonmark/commonmark-java
Codehttps://github.com/commonmark/commonmark-java
Issues9 (9)https://github.com/commonmark/commonmark-java/issues
Pull requests4 (4)https://github.com/commonmark/commonmark-java/pulls
Actionshttps://github.com/commonmark/commonmark-java/actions
Wikihttps://github.com/commonmark/commonmark-java/wiki
Security and quality8 (8)https://github.com/commonmark/commonmark-java/security
Insightshttps://github.com/commonmark/commonmark-java/pulse
https://github.com/commonmark/commonmark-java
New issuehttps://github.com/login?return_to=https://github.com/commonmark/commonmark-java/issues/458
New issuehttps://github.com/login?return_to=https://github.com/commonmark/commonmark-java/issues/458
#459https://github.com/commonmark/commonmark-java/pull/459
Second code span not recognised after an unclosed backtick string and another code spanhttps://github.com/commonmark/commonmark-java/issues/458#top
#459https://github.com/commonmark/commonmark-java/pull/459
https://github.com/DRMacIver
DRMacIverhttps://github.com/DRMacIver
on Sep 22, 2026https://github.com/commonmark/commonmark-java/issues/458#issue-5537966252
b89e72fhttps://github.com/commonmark/commonmark-java/commit/b89e72fdb25948c1b9623d64baa29d35d49f8abf
hegelhttps://github.com/hegeldev/hegel-java
https://github.com/hegeldev/hegel-zoo/tree/main/targets/java/commonmark-javahttps://github.com/hegeldev/hegel-zoo/tree/main/targets/java/commonmark-java
robinsthttps://github.com/robinst
completedhttps://github.com/commonmark/commonmark-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#459https://github.com/commonmark/commonmark-java/pull/459
on Oct 10, 2026https://github.com/commonmark/commonmark-java/issues/458#event-32942411800
dejavuhyohttps://github.com/dejavuhyo
on Oct 15, 2026https://github.com/commonmark/commonmark-java/issues/458#event-33286570205
Fix code spans after an unclosed backtick stringhttps://github.com/dejavuhyo/commonmark-java/commit/3b3292cdaf6013bdb0f204b39d747721e35937a0
https://docs.github.com/articles/closing-issues-via-commit-messages
3b3292chttps://github.com/dejavuhyo/commonmark-java/commit/3b3292cdaf6013bdb0f204b39d747721e35937a0
Sign up for freehttps://github.com/signup?return_to=https://github.com/commonmark/commonmark-java/issues/458
Sign in to commenthttps://github.com/login?return_to=https://github.com/commonmark/commonmark-java/issues/458
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.