Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: Markdown file preview renders YAML frontmatter as a setext heading

オープン 初心者向け
#23,704 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
77/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
markdown, react, typescript, yaml
領域
frontend, web-dev

調査の方向性

apps/web の Markdown プレビューから始め、指定されたファイルをどのように表示するかをたどってください。issue では、プレビューが remark または react-markdown を使っている可能性が示されています。レンダリング前に YAML frontmatter が解析されるか確認してください。プレビューがドキュメントの見出しから始まり、frontmatter が非表示になるか、コンパクトなキーと値の表として表示されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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
  1. 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
    
  2. 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.

主要言語
TypeScript
スター
24.8k
フォーク
6.4k
平均マージ
1時間 22分
マージ済み PR(30日)
18

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pingdotgg/t3code のほかの issue

pingdotgg/t3code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。