René's URL Explorer Experiment


Title: id(web/markdown): HTML width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no trace · Issue #2180 · developing-today/code · GitHub

Open Graph Title: id(web/markdown): HTML width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no trace · Issue #2180 · developing-today/code

X Title: id(web/markdown): HTML width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no trace · Issue #2180 · developing-today/code

Description: id(web/markdown): HTML width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no trace Evidence (verified this run, main c58507a3) pkgs/id/src/web/markdown.rs:1208-12...

Open Graph Description: id(web/markdown): HTML width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no trace Evidence (verified this run, main c5850...

X Description: id(web/markdown): HTML <img> width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no trace Evidence (verified this run, ...

Opengraph URL: https://github.com/developing-today/code/issues/2180

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(web/markdown): HTML \u003cimg> width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no trace","articleBody":"# id(web/markdown): HTML `\u003cimg>` width/height that aren't bare integers are silently dropped on markdown import — `200px`, `50%`, `200.0` sizing vanishes with no trace\n\n## Evidence (verified this run, main `c58507a3`)\n\n`pkgs/id/src/web/markdown.rs:1208-1217` (`parse_img_tag`, the #893 HTML-image import path):\n\n```rust\nif let Some(w) = attr(\"width\")\n    && let Ok(n) = w.parse::\u003cu64>()\n{\n    attrs[\"width\"] = json!(n);\n}\nif let Some(h) = attr(\"height\")\n    && let Ok(n) = h.parse::\u003cu64>()\n{\n    attrs[\"height\"] = json!(n);\n}\n```\n\nA dimension that fails the bare-`u64` parse is not rejected, not preserved, and not reported — the attribute simply never enters the ProseMirror node. On the next save, `prosemirror_to_markdown` (markdown.rs:1953-1968) emits dimensions only from `attrs.width`/`attrs.height`, so the sizing is gone from the document permanently.\n\nVerbatim-probe (laptop, `~/git/fleet/probe-2026-10-29-laneA-imgwidth/`, `parse_tag_attrs` + `parse_img_tag` copied from main `c58507a3`):\n\n| input | resulting attrs |\n|---|---|\n| `width=\"200\" height=\"100\"` (control) | `width:200, height:100` — kept |\n| `width=\"200px\" height=\"100px\"` | both **dropped** |\n| `width=\"50%\"` | **dropped** |\n| `width=\"200.0\"` | **dropped** |\n| `width=\" 200\"` (leading space) | **dropped** |\n| `width=\"0\"` | kept as `0` |\n| `width=\"+200\"` | kept as `200` (Rust `u64` parse accepts a leading `+`) |\n\n`200px` is the form most of the world's HTML and Markdown-with-inline-HTML actually uses (CSS-style dimensions in exported notes, README badges, pasted web content); percentages are the standard responsive form. Both reach this parser through the raw-HTML image path (#893) and lose their sizing silently on the first load/save round-trip.\n\n## Why it matters\n\n- Silent data loss on import: the document the user saved is not the document they wrote, and nothing anywhere says a dimension was discarded.\n- The accept set is accidental, not designed: `+200` and `0` pass while `200px`, `200.0` and `\" 200\"` fail — that is `u64::from_str`'s grammar, not an image-sizing policy.\n- Sibling asymmetry: the editor's own parseDOM side of this same problem is #2010 (TypeScript, bare `Number()`); this is the Rust markdown-import side, a separate code path with the opposite failure shape (drop instead of reinterpret).\n\n## Acceptance criteria\n\n- [ ] Triage pins the dimension grammar for the markdown import path: which of `200px` (strip a `px` suffix), `50%` (percent — represent or refuse), `200.0`, and whitespace-padded values are accepted, and what happens to the rest.\n- [ ] A dimension the pinned grammar refuses is not silently dropped: it is either preserved in the node or the import surfaces it (the pinned behavior is recorded on this issue).\n- [ ] Regression tests in `web/markdown.rs` cover the pinned grammar end-to-end (import → node attrs → markdown emission) for at least: bare integer (control), `px`-suffixed, fractional, and padded values.\n- [ ] No behavior change for images whose dimensions already parse as bare integers.\n\nDedup: #2010 is the TypeScript editor `parseDOM` path (bare `Number()` — NaN/fraction/hex pass through); #872 (closed) was substring attribute shadowing in this same function; #893 (closed) added the sized-image import form itself. None covers the Rust import-side dimension grammar.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-29T07:44:49Z","url":"https://github.com/developing-today/code/issues/2180"}

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:d98174a8-377a-8371-63c2-67dac1a01f03
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA69A:1293AE:C9B628:105B67E:6B064247
html-safe-nonce181a1543ac012f060c0d8a2d01c30315a1763249ab607438a531dae94544ce19
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjlBOjEyOTNBRTpDOUI2Mjg6MTA1QjY3RTo2QjA2NDI0NyIsInZpc2l0b3JfaWQiOiI1MDEyNTM4NTQ3Nzc0MDQ2NzkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac32602faf26b2f0c6db960347345dc7239b6b11736e36596b5e4479aaad77f4cb
hovercard-subject-tagissue:6095260276
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/developing-today/code/2180/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ada1f9f3d7136310876f5bfb1cdc89a2011886faefc98977b43e2fdedadb10e5/developing-today/code/issues/2180
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ada1f9f3d7136310876f5bfb1cdc89a2011886faefc98977b43e2fdedadb10e5/developing-today/code/issues/2180
og:image:altid(web/markdown): HTML width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no trace Evidence (verified this run, main c5850...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
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
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/2180#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F2180
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%2Fdeveloping-today%2Fcode%2Fissues%2F2180
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=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/2180
Reloadhttps://github.com/developing-today/code/issues/2180
Reloadhttps://github.com/developing-today/code/issues/2180
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests171 (171)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2180
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2180
#3408https://github.com/developing-today/code/pull/3408
id(web/markdown): HTML width/height that aren't bare integers are silently dropped on markdown import — 200px, 50%, 200.0 sizing vanishes with no tracehttps://github.com/developing-today/code/issues/2180#top
#3408https://github.com/developing-today/code/pull/3408
https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 29, 2026https://github.com/developing-today/code/issues/2180#issue-6095260276
#893https://github.com/developing-today/code/issues/893
#893https://github.com/developing-today/code/issues/893
id(web/editor): image parseDOM bare Number() lets NaN/fraction/hex dimensions through — pasted image sizing silently lost or reinterpreted on save #2010https://github.com/developing-today/code/issues/2010
#2010https://github.com/developing-today/code/issues/2010
#872https://github.com/developing-today/code/issues/872
#893https://github.com/developing-today/code/issues/893
Nexthttps://github.com/developing-today/code/issues/2180?timeline_page=1
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Oct 29, 2026https://github.com/developing-today/code/issues/2180#issuecomment-6490984734
developing.todayhttps://kaneo.security.cab
CODE-1073https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/blljmiwqqp6wzr3x7pz04zux
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
on Oct 29, 2026https://github.com/developing-today/code/issues/2180#event-34559872321
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 29, 2026https://github.com/developing-today/code/issues/2180#issuecomment-6490991351
c58507ahttps://github.com/developing-today/code/commit/c58507a3630e1a5a4935b3279a61c7fb59e3c65b
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 29, 2026https://github.com/developing-today/code/issues/2180#event-34563912824
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#event-34818739839
dezren39https://github.com/dezren39
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#event-34821888155
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#event-34824101290
fix(id/web): parse img dimensions as exact decimals, not via f64 (#2180)https://github.com/developing-today/code/commit/f68c96e8c745e99bbd85aab4ef8f2730a0df5f5e
#2180https://github.com/developing-today/code/issues/2180
f68c96ehttps://github.com/developing-today/code/commit/f68c96e8c745e99bbd85aab4ef8f2730a0df5f5e
Merge pull request #3408 from developing-today/queue/5201-2180-img-di…https://github.com/developing-today/code/commit/199d9f2e222c17826533dc3d9320aebd88aab533
#3408https://github.com/developing-today/code/pull/3408
199d9f2https://github.com/developing-today/code/commit/199d9f2e222c17826533dc3d9320aebd88aab533
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3408https://github.com/developing-today/code/pull/3408
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#event-34824226440
developing-todayhttps://github.com/apps/developing-today
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#event-34824227350
dezren39https://github.com/dezren39
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#event-34824245990
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#issuecomment-6556251665
#3408https://github.com/developing-today/code/pull/3408
199d9f2https://github.com/developing-today/code/commit/199d9f2e222c17826533dc3d9320aebd88aab533
f68c96ehttps://github.com/developing-today/code/commit/f68c96e8c745e99bbd85aab4ef8f2730a0df5f5e
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#issuecomment-6555810191
fix(id/web): accept px/integral-decimal img dimensions, warn on refused (#2180) #3408https://github.com/developing-today/code/pull/3408
fix(id/web): accept px/integral-decimal img dimensions, warn on refused (#2180) #3408https://github.com/developing-today/code/pull/3408
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2180#event-34822689662
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/2180
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2180
dezren39https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.