Skip to content

docs: retire the last references to the pre-marked renderer - #888

Merged
hanzei merged 2 commits into
masterfrom
claude/markdown-formatting-support-wkp7se
Aug 11, 2026
Merged

docs: retire the last references to the pre-marked renderer#888
hanzei merged 2 commits into
masterfrom
claude/markdown-formatting-support-wkp7se

Conversation

@hanzei

@hanzei hanzei commented Aug 11, 2026

Copy link
Copy Markdown
Owner

What

Cleanup left over from the Markdown program (#816, #817, #818, #819, #822 and the list-item work that followed). Mobile's renderer moved from markdown-it + react-native-markdown-display to a marked lexer feeding the shared normalizer, but a handful of comments still describe the architecture that replaced.

Stale comments

  • shared/src/markdown.ts opened by explaining that the two clients "reach the same feature set by completely different routes" — the opposite of what blockMarkdown.ts / inlineMarkdown.ts now guarantee. Rewritten to say what is actually true: both lex with marked and normalize through the same two modules, and only the renderers differ.
  • Two comments in shared/src/inlineMarkdown.ts cite markdown-it, one pointing at a mobile/src/utils/markdown.tsx that does not exist under that extension (it is .ts). Both rationales — why this module imports nothing from marked, and why an empty link label falls back to its href — stand on their own, so the dead analogies are dropped rather than re-pointed.
  • docs/specs/markdown-rendering.md explained the absence of smart typography as markdown-it's typographer being explicitly switched off, and repeated the markdown.tsx pointer. The behaviour documented was correct; the mechanism no longer exists. Reworded to keep the history (mobile did have it) without implying a switch someone could go looking for.

Dead dependency override

mobile/package.json still pinned markdown-it: ^14.2.0 in overrides. Nothing has depended on markdown-it since the renderer swap — regenerating the lockfile with the override removed produces no diff, which is what confirms it was inert rather than load-bearing.

Spec discoverability

docs/specs/markdown-rendering.md was named in CLAUDE.md's directory-tree comment but not linked from either place the libraries it governs are listed. Added a by-name pointer to the webapp and mobile stack entries, matching how file-attachments.md is referenced from the blobstore section.

Not in scope

The spec documents one known gap that this PR does not touch — text ↔ list conversion does not pre-check ITEM_MAX_COUNT or ITEM_TEXT_MAX_LENGTH, so an oversized note fails with a generic "failed to convert". Filed separately as #889.

Testing

task check passes (lint + shared, server, webapp and mobile suites).

No visual artifact: this is comments, docs, and a dependency override — no behaviour change, and nothing user-facing to screenshot.

The Markdown work replaced mobile's markdown-it + react-native-markdown-display
renderer with a marked lexer and the shared normalizer, but a few comments still
describe the architecture it removed:

- shared/src/markdown.ts opened by explaining that the two clients "reach the
  same feature set by completely different routes", which is the opposite of
  what the shared normalizer now guarantees.
- Two comments in shared/src/inlineMarkdown.ts cite markdown-it, one of them
  pointing at a mobile/src/utils/markdown.tsx that does not exist under that
  extension. Both rationales stand on their own without the dead analogy.
- The spec explained the absence of smart typography as markdown-it's
  typographer being switched off, and repeated the markdown.tsx pointer.

Also drops the markdown-it override from mobile/package.json. Nothing depends on
markdown-it since the renderer swap, and regenerating the lockfile with the
override removed produces no diff, which is what confirms it was inert.

Adds a by-name pointer to docs/specs/markdown-rendering.md from both stack
entries in CLAUDE.md; the directory-tree comment already named the spec, but
nothing linked it from the libraries it governs.

No behaviour change: comments, docs, and a dead dependency override.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Aj3Rv8vAT86Yk6tAgsWKWm
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4c586ddf-755b-4cb2-943a-dd2a899d1f33

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

The pull request updates Markdown rendering documentation to describe shared marked parsing and normalization across web and mobile clients. It replaces outdated markdown-it behavior and dependency-resolution references. It removes the mobile markdown-it override. It also updates technology-stack references and explanatory comments without changing runtime behavior or public APIs.

Possibly related PRs

  • hanzei/jot#823: Introduced the shared marked-based Markdown implementation documented by this pull request.
  • hanzei/jot#825: Added the marked-based implementation and related inlineMarkdown.ts changes referenced here.
  • hanzei/jot#828: Introduced the rendering architecture and removed stale markdown-it references.

Poem

A rabbit found old Markdown lore,
And marked new paths from door to door.
Straight quotes stayed, hyphens aligned,
Web and mobile shared one mind.
The stale override hopped away—
“Neat docs!” the bunny cried today.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the removal of outdated references to the former Markdown renderer.
Description check ✅ Passed The description directly explains the documentation, comments, dependency override, and scope changes in the pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hanzei
hanzei marked this pull request as ready for review August 11, 2026 05:39

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CLAUDE.md`:
- Around line 557-559: Update both stack entries in CLAUDE.md to use Markdown
link syntax, including descriptive link text and the destination
docs/specs/markdown-rendering.md, instead of wrapping the paths in backticks.
Preserve the existing descriptions and ensure both references render as
clickable links.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 87996a61-3a54-4c44-b727-686315bef710

📥 Commits

Reviewing files that changed from the base of the PR and between 729185d and 9e88479.

📒 Files selected for processing (5)
  • CLAUDE.md
  • docs/specs/markdown-rendering.md
  • mobile/package.json
  • shared/src/inlineMarkdown.ts
  • shared/src/markdown.ts
💤 Files with no reviewable changes (1)
  • mobile/package.json

Comment thread CLAUDE.md Outdated
Both stack entries wrapped docs/specs/markdown-rendering.md in backticks, so it
rendered as a code span rather than something you can click through to.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Aj3Rv8vAT86Yk6tAgsWKWm
@hanzei
hanzei merged commit 726ed74 into master Aug 11, 2026
18 checks passed
@hanzei
hanzei deleted the claude/markdown-formatting-support-wkp7se branch August 11, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants