René's URL Explorer Experiment


Title: id(web): fenced code blocks without an info string are rewritten as indented blocks on save · Issue #954 · developing-today/code · GitHub

Open Graph Title: id(web): fenced code blocks without an info string are rewritten as indented blocks on save · Issue #954 · developing-today/code

X Title: id(web): fenced code blocks without an info string are rewritten as indented blocks on save · Issue #954 · developing-today/code

Description: Problem In the id web editor's markdown codec (pkgs/id/src/web/markdown.rs), a fenced code block without an info string is rewritten as an indented (4-space) code block on save. The user's chosen fence form is destroyed on every open→sav...

Open Graph Description: Problem In the id web editor's markdown codec (pkgs/id/src/web/markdown.rs), a fenced code block without an info string is rewritten as an indented (4-space) code block on save. The user's chosen f...

X Description: Problem In the id web editor's markdown codec (pkgs/id/src/web/markdown.rs), a fenced code block without an info string is rewritten as an indented (4-space) code block on save. The user's ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(web): fenced code blocks without an info string are rewritten as indented blocks on save","articleBody":"## Problem\n\nIn the id web editor's markdown codec (`pkgs/id/src/web/markdown.rs`), a fenced code block **without an info string** is rewritten as an indented (4-space) code block on save. The user's chosen fence form is destroyed on every open→save, even when nothing else changed. An empty fenced block additionally gains a spurious blank line.\n\n## Evidence (verified this run)\n\nRound-trip probe on main `a2eef6f7` (standalone crate compiling the verbatim `pkgs/id/src/web/markdown.rs` against comrak 0.56.0 + serde_json; full logs in the goal's `hidden_files/probe-2026-10-26-0312/out.log` and `out3.log`):\n\n| Input | Saved output |\n|---|---|\n| ` ``` ` block with blank lines, no info (`` ```\\nline1\\n\\n\\nline2\\n``` ``) | indented block: `    line1\\n    \\n    \\n    line2` |\n| ` ```` ` block containing a ``` line (no info) | indented block: `    ```\\n    inner` |\n| fenced block (no info) inside a list item | rewritten to a 6-space indented block inside the item |\n| fenced block (no info) inside a blockquote | rewritten to indented form (`>     code line`) |\n| empty fenced block (` ```\\n``` `) | ` ```\\n\\n``` ` — a blank content line appears |\n| ` ```rust ` block with blanks (control, has info) | stays fenced, unchanged ✓ |\n\nThe rewritten forms are currently stable fixpoints (a second round-trip does not degrade them further), so this is a fidelity/diff-noise bug rather than progressive corruption — but the rewrite is unconditional: merely opening and saving a note reformats every info-less fenced block in it.\n\n## Root cause (to confirm in triage)\n\n`json_to_ast` builds every `code_block` as `fenced: true, fence_length: 3` (`pkgs/id/src/web/markdown.rs:885-890`), yet comrak's `format_commonmark` renderer still emits the indented form for these blocks — the cases above suggest it does so whenever there is no info string (the `rust`-info control stays fenced). Separately, the literal is always built as `format!(\"{content}\\n\")` (:890), so an empty block's literal is a single `\"\\n\"`, which renders as the spurious blank line. The existing round-trip test (`test_roundtrip_code_block`) only covers an info-carrying block, so neither behavior is pinned.\n\n## Why it matters\n\n- Silent reformatting on save pollutes diffs in synced/vault notes and erodes trust in the editor's other (correct) round-trips.\n- Indented code is context-fragile once the user edits the saved file by hand or in another tool: it cannot interrupt a paragraph, is invisible as a block, and is the form most likely to be mangled by other markdown tooling.\n- Info-less fences are the common case for plain shell/output snippets.\n\n## Acceptance criteria\n\n- A fenced code block without an info string round-trips open→save still fenced (byte-identical modulo the file's trailing newline), including blocks with blank lines, blocks containing ``` lines, and blocks nested in list items and blockquotes.\n- An empty fenced block round-trips with no spurious blank line added.\n- Info-carrying blocks and all existing codec tests are unchanged; new unit tests in `pkgs/id/src/web/markdown.rs` cover the info-less and empty cases.\n- Saved output is a stable fixpoint on a second round-trip.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-26T08:28:00Z","url":"https://github.com/developing-today/code/issues/954"}

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:3090daba-da15-e754-b3cd-ab7b53a1d51e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB470:3F83D3:C50B51:FF07FF:6B063F04
html-safe-nonce684b661de4c60f4f45f8279e63541d6e877ed87dbbe94ffc59a1a14f8fee67f1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDcwOjNGODNEMzpDNTBCNTE6RkYwN0ZGOjZCMDYzRjA0IiwidmlzaXRvcl9pZCI6IjY3MTY5OTE2NzYzMzE5OTg5ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacab58cff43ce8f801a35566e183c4067d0c33a71dc21d080c9ed3af236586bf1a
hovercard-subject-tagissue:6036072463
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/954/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1f92f505b9a9364292f0d29c559c39252534011625e7f56d398b9bf364053d58/developing-today/code/issues/954
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1f92f505b9a9364292f0d29c559c39252534011625e7f56d398b9bf364053d58/developing-today/code/issues/954
og:image:altProblem In the id web editor's markdown codec (pkgs/id/src/web/markdown.rs), a fenced code block without an info string is rewritten as an indented (4-space) code block on save. The user's chosen f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
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
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/954#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F954
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%2F954
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/954
Reloadhttps://github.com/developing-today/code/issues/954
Reloadhttps://github.com/developing-today/code/issues/954
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 requests168 (168)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/954
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/954
id(web): fenced code blocks without an info string are rewritten as indented blocks on savehttps://github.com/developing-today/code/issues/954#top
https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
mode/onlinehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22mode%2Fonline%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
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/954#issue-6036072463
Nexthttps://github.com/developing-today/code/issues/954?timeline_page=1
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%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
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%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
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
on Oct 26, 2026https://github.com/developing-today/code/issues/954#event-34238314592
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/954#event-34238324163
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/954#issuecomment-6411573745
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 27, 2026https://github.com/developing-today/code/issues/954#issuecomment-6430944239
70efcd4https://github.com/developing-today/code/commit/70efcd4eb0561656475c43936f3411f6250edfd4
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
id(web): loose task list items fuse on save — task_list hardcodes tight, second paragraph/code block destroyed #1036https://github.com/developing-today/code/issues/1036
dezren39https://github.com/dezren39
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
mode/onlinehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22mode%2Fonline%22
on Nov 1, 2026https://github.com/developing-today/code/issues/954#event-34813236827
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/954#issuecomment-6589245079
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 2, 2026https://github.com/developing-today/code/issues/954#issuecomment-6591094405
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
dezren39https://github.com/dezren39
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
on Nov 3, 2026https://github.com/developing-today/code/issues/954#event-35016882394
dezren39https://github.com/dezren39
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%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
on Nov 10, 2026https://github.com/developing-today/code/issues/954#event-35645133041
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 10, 2026https://github.com/developing-today/code/issues/954#issuecomment-6759188745
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 10, 2026https://github.com/developing-today/code/issues/954#issuecomment-6761373699
#8097https://github.com/developing-today/code/issues/8097
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
id(web): fenced code blocks without an info string are rewritten as indented blocks on save #954https://github.com/developing-today/code/issues/954
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 10, 2026https://github.com/developing-today/code/issues/954#event-35654089266
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 10, 2026https://github.com/developing-today/code/issues/954#issuecomment-6766817038
#954https://github.com/developing-today/code/issues/954
#954https://github.com/developing-today/code/issues/954
#954https://github.com/developing-today/code/issues/954
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
on Nov 10, 2026https://github.com/developing-today/code/issues/954#event-35677548997
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 10, 2026https://github.com/developing-today/code/issues/954#issuecomment-6767210784
#954https://github.com/developing-today/code/issues/954
#954https://github.com/developing-today/code/issues/954
e94cf89https://github.com/developing-today/code/commit/e94cf89bf5d49a75637452beb4a129b648255842
7fb1e6dhttps://github.com/developing-today/code/commit/7fb1e6dfcbeaad29b4b0fe714dba54e0974c2242
1ec98d8https://github.com/developing-today/code/commit/1ec98d8adb19c3e5d9fac07baf5c5276ca70d8f3
#1496https://github.com/developing-today/code/issues/1496
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 10, 2026https://github.com/developing-today/code/issues/954#event-35679193218
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
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 10, 2026https://github.com/developing-today/code/issues/954#event-35679197641
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/954
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/954
dezren39https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
mode/onlinehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22mode%2Fonline%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
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%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.