[Bug]: Markdown file preview renders YAML frontmatter as a setext heading
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 77/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- markdown, react, typescript, yaml
Research direction
Start in the Markdown preview under apps/web and trace how it renders the supplied file; the issue suggests the preview may use remark or react-markdown. Check whether YAML frontmatter is parsed before rendering. Done when the preview starts at the document heading and the frontmatter is hidden or shown as a compact key/value table.
Written by the indexing model from the issue text.
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
-
Open a project that has a Markdown file starting with YAML frontmatter, for example:
--- type: Task title: Decide the joke source and Draft safety limits description: Settle where Jokes come from and what a Draft may never contain. status: draft task_status: ready blocked_by: [] created: 2026-10-22 --- # Decide the joke source and Draft safety limits -
Open that file from the Files panel so it shows in the rendered Markdown preview.
Expected behavior
The frontmatter block is recognised as metadata. It is either hidden or shown as a small key/value table, the way GitHub, GitLab and Obsidian render it. The document starts at the # heading.
Actual behavior
The frontmatter is rendered as ordinary Markdown:
- The opening
---becomes a horizontal rule. - All the YAML lines collapse into one paragraph (
type: Task title: … created: 2026-10-22). - The closing
---under that paragraph turns it into a setext H2.
So every file with frontmatter opens with a large bold run-on "heading" made of its metadata.
Impact
Minor bug or occasional failure
Version or commit
T3 Code (Beta) desktop 0.1.0
Environment
macOS 27 (Darwin 27.0.0), T3 Code desktop app
Workaround
Switch the file tab to source view, or open the file in an external editor.
Context
We keep project knowledge as Markdown files with YAML frontmatter, using the OKF v0.2 convention: every page carries type, title, description and status, and Task pages also carry Board fields such as task_status and blocked_by. Agents and humans read these files side by side in T3 Code. Frontmatter is also standard in Obsidian vaults, static-site generators and agent skill files (SKILL.md), so most Markdown in agent-driven repositories hits this.
A likely fix: enable frontmatter parsing in the Markdown preview (for example remark-frontmatter, if the preview uses remark/react-markdown), then hide the block or render it as a compact properties table.
- Dominant language
- TypeScript
- Stars
- 24.8k
- Forks
- 6.4k
- Avg merge
- 1h 22m
- Merged PRs (30d)
- 18
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pingdotgg/t3code
-
MCP endpoint matches the Authorization scheme case-sensitively and logs the same reason for "absent" and "wrong scheme" (ChatGPT connector gets missing_bearer_token)Possibly taken A pull request linked to this issue is open or already merged. Openbug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
pingdotgg/t3code#23175 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]: preview_evaluate accepts returnByValue:false but returns no usable object referencePossibly taken @juliusmarminge claimed this 1 day ago. Openbug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
All issues in pingdotgg/t3code
Similar issues
-
数据界面的横向滚动条缺失Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
zilliztech/attu#1037 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openclaw/openclaw#181212 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apify/apify-mcp-server#1684 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Automattic/data-liberation-agent#953 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
siteboon/claudecodeui#1642 ·
Maintainers usually reply within 5 days