Open
Description
Describe the bug
docs: https://vitepress.dev/reference/runtime-api#frontmatter

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
- Check if you're on the latest VitePress version.
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.