Skip to content

ブログで目次を表示 #132

@miyaji255

Description

@miyaji255

ブログページに目次を追加する
zenn, qiitaのように横に表示する

headingsは次のように取得できます

const entry = await getEntry('blog', 'post-1');
const { Content, headings } = await render(entry);

h1があればh1とh2を目次に表示し、h1がなければh2とh3を目次に表示してください

MUST

  • 全ての返答は日本語で返してください

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions