TanStack / TanStack/tanstack.com

Collapsible `+/-` callout syntax lost during Markdown migration

Open
#1,140 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

source-audit
Dominant language
TypeScript
Stars
1.1k
Forks
401
Avg merge
18h 14m
Merged PRs (30d)
56

Description

Before migrating to TanStack Markdown, the website made use of rehype-callouts. Since they're implementing Obsidian Markdown syntax, it allowed for collapsible callouts using either + or - right after the callout type:

> [!TIP]- Title
> Folded content. - means default collapsed, + means default expanded.

However, when TanStack Markdown was introduced, it changed how callouts are parsed. This now causes documentation sites using that feature to have broken callouts:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/markdown/src/extensions/callouts.ts at the linked parser implementation, then inspect the Form installation callout. Compare the documented Obsidian + and - syntax with the current parsing behavior; done means both markers preserve their default expanded or collapsed state on the documentation site.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown, typescript
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.