🐛 Bug Headings Break With Front Matter
codingwithmanny opened this issue · comments
Context
When trying to create page and adding front matter configurations and then creating a markdown h1 with specifically the :
symbol in the text it breaks.
Example:
Works
---
layout: docs
---
# Hello - There
Doesn't Work
---
layout: docs
---
# Hello: There
Step To Reproduce
1 - Create a new vocs project pnpm create vocs
2 - Modify index.mdx
with the following:
---
layout: landing
---
# Hello: There
3 - Save, run, and see the following error
![Screenshot 2024-03-07 at 12 06 01 PM](https://private-user-images.githubusercontent.com/318082/310816223-a72129b5-4498-4a11-bbdc-16beeeeba1b0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTU4NzA2MjYsIm5iZiI6MTcxNTg3MDMyNiwicGF0aCI6Ii8zMTgwODIvMzEwODE2MjIzLWE3MjEyOWI1LTQ0OTgtNGExMS1iYmRjLTE2YmVlZWViYTFiMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNTE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDUxNlQxNDM4NDZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mYjE1MmE0NmYyOWM0MzFkNTYxNTZjNmU5OWZjYWNiYjg0NWIwODg5ZWY3NWZmM2EzZGQzMzE2NGM1ZDg5YjU4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.I7frAKTIDXravtz4D3EZkTcb5WdZ9g48IZQpq7kLpKk)