Skip to content

can not use $frontmatter with Local Search #3024

Open
@buqiyuan

Description

@buqiyuan

Describe the bug

docs: https://vitepress.dev/reference/runtime-api#frontmatter

image

Reproduction

https://stackblitz.com/edit/vite-gdgetp?file=docs%2Fexample.md

Expected behavior

Can search for titles rendered using frontmatter

System Info

System:
    OS: macOS 13.6
    CPU: (10) arm64 Apple M1 Max
    Memory: 191.91 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.5.1 - /opt/homebrew/bin/npm
    pnpm: 8.6.0 - ~/Library/pnpm/pnpm
  Browsers:
    Safari: 16.6

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions