René's URL Explorer Experiment


Title: Implement methods to go backwards and look backwards inside Scanner · Issue #395 · commonmark/commonmark-java · GitHub

Open Graph Title: Implement methods to go backwards and look backwards inside Scanner · Issue #395 · commonmark/commonmark-java

X Title: Implement methods to go backwards and look backwards inside Scanner · Issue #395 · commonmark/commonmark-java

Description: Is your feature request related to a problem? Please describe. I'm trying to implement an InlineContentParser for images from a custom markdown spec from a certain website. Given I already parsed the opener, the spec requires me to look ...

Open Graph Description: Is your feature request related to a problem? Please describe. I'm trying to implement an InlineContentParser for images from a custom markdown spec from a certain website. Given I already parsed t...

X Description: Is your feature request related to a problem? Please describe. I'm trying to implement an InlineContentParser for images from a custom markdown spec from a certain website. Given I already pars...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement methods to go backwards and look backwards inside Scanner","articleBody":"**Is your feature request related to a problem? Please describe.**\nI'm trying to implement an `InlineContentParser` for images from a custom markdown spec from a certain website. Given I already parsed the opener, the spec requires me to look for the first whitespace character or end of text, then *going backwards* from there, look for the first `)`. Everything between the opener and `)` is considered the image link. \n\nThis is a bit annoying to implement with the current limited set of methods `Scanner` has, and I also imagine the performance would be worse when instead of going backwards from the closer, you go forward from the opener via `scanner.find(')')` and perform an additional `find` to see if you just found the last `)`.\n\n**Describe the solution you'd like**\nI would like for there to be similar methods to `next` and `find` that would instead look back from the current `Scanner` position, i.e `prev`, and `findPrev`. Then I could just do the following (sorry that the code is in Kotlin as I don't regularly write Java, I hope the intent is clear):\n```\nval start = scanner.position()  // position after the opener has been parsed\nscanner.find { char -> char.isWhitespace() } // scanner gets moved to first whitespace or very end if there is none\nscanner.findPrev(')') // scanner gets moved backwards until the position is at ')'. Ideally there would also be an overload that takes a position until which it should move, so i could pass the `start` to it and it would early exit if it doesn't find one by then\nval end = scanner.position() \nval imageLink = scanner.getSource(start, end).getContent()\n```\n\n**Describe alternatives you've considered**\nAs stated above I have considered iterating forward from the current position to find the next `)` and check if there's another one to see if I'd found the last one.","author":{"url":"https://github.com/Emplexx","@type":"Person","name":"Emplexx"},"datePublished":"2025-08-18T19:43:13Z","url":"https://github.com/commonmark/commonmark-java/issues/395"}

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:ba82a03a-abda-161b-6a69-6e435c63f6c5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8AE8:2B6B62:A218E:E082A:6AFBB7E6
html-safe-nonce6410d01aa28a73875665be313f614119d42a2ce6b7c6c0ad8b39a116dfad6aac
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUU4OjJCNkI2MjpBMjE4RTpFMDgyQTo2QUZCQjdFNiIsInZpc2l0b3JfaWQiOiIzNzk5MzE0NjU0MzU4NjQ4ODA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace40b7498d07ca77abfd96dcf75dc878e6d463f4c545f1961bfe85d05a5b17db3
hovercard-subject-tagissue:3331890801
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/395/issue_layout
twitter:imagehttps://opengraph.githubassets.com/85973e1243ca243932a740faaf0606e6d4206500817f13059a43114e38f301b8/commonmark/commonmark-java/issues/395
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85973e1243ca243932a740faaf0606e6d4206500817f13059a43114e38f301b8/commonmark/commonmark-java/issues/395
og:image:altIs your feature request related to a problem? Please describe. I'm trying to implement an InlineContentParser for images from a custom markdown spec from a certain website. Given I already parsed t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEmplexx
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/395#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommonmark%2Fcommonmark-java%2Fissues%2F395
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%2F395
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/395
Reloadhttps://github.com/commonmark/commonmark-java/issues/395
Reloadhttps://github.com/commonmark/commonmark-java/issues/395
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/395
New issuehttps://github.com/login?return_to=https://github.com/commonmark/commonmark-java/issues/395
#466https://github.com/commonmark/commonmark-java/pull/466
Implement methods to go backwards and look backwards inside Scannerhttps://github.com/commonmark/commonmark-java/issues/395#top
#466https://github.com/commonmark/commonmark-java/pull/466
enhancementhttps://github.com/commonmark/commonmark-java/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/Emplexx
Emplexxhttps://github.com/Emplexx
on Aug 18, 2025https://github.com/commonmark/commonmark-java/issues/395#issue-3331890801
Emplexxhttps://github.com/Emplexx
enhancementhttps://github.com/commonmark/commonmark-java/issues?q=state%3Aopen%20label%3A%22enhancement%22
on Aug 18, 2025https://github.com/commonmark/commonmark-java/issues/395#event-19210648888
https://github.com/robinst
robinsthttps://github.com/robinst
on Sep 10, 2025https://github.com/commonmark/commonmark-java/issues/395#issuecomment-3274855026
https://github.com/Emplexx
Emplexxhttps://github.com/Emplexx
on Sep 10, 2025https://github.com/commonmark/commonmark-java/issues/395#issuecomment-3274933670
https://github.com/mvanhorn
mvanhornhttps://github.com/mvanhorn
on Oct 22, 2026https://github.com/commonmark/commonmark-java/issues/395#issuecomment-6338521229
#466https://github.com/commonmark/commonmark-java/pull/466
robinsthttps://github.com/robinst
completedhttps://github.com/commonmark/commonmark-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
5346086https://github.com/commonmark/commonmark-java/commit/5346086a54970066524ab7d83bed61d0511705d4
on Nov 1, 2026https://github.com/commonmark/commonmark-java/issues/395#event-34817046454
https://github.com/robinst
robinsthttps://github.com/robinst
on Nov 1, 2026https://github.com/commonmark/commonmark-java/issues/395#issuecomment-6554610507
https://github.com/commonmark/commonmark-java/blob/main/CHANGELOG.md#0320---2026-11-01https://github.com/commonmark/commonmark-java/blob/main/CHANGELOG.md#0320---2026-11-01
Sign up for freehttps://github.com/signup?return_to=https://github.com/commonmark/commonmark-java/issues/395
Sign in to commenthttps://github.com/login?return_to=https://github.com/commonmark/commonmark-java/issues/395
enhancementhttps://github.com/commonmark/commonmark-java/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.