Skip to content

Website: Allow double curly brace templates in Markdown code blocks.#25179

Merged
eashaw merged 2 commits intomainfrom
website-update-markdown-code-blocks
Jan 6, 2025
Merged

Website: Allow double curly brace templates in Markdown code blocks.#25179
eashaw merged 2 commits intomainfrom
website-update-markdown-code-blocks

Conversation

@eashaw
Copy link
Copy Markdown
Contributor

@eashaw eashaw commented Jan 6, 2025

Closes: #25176

Changes:

  • Updated the to-html helper to add the v-pre directive to Markdown code blocks, This directive will prevent any of the content inside of it from being interpreted as a Vue template.
  • Updated the regex in build-static-content that looks for vue templates to not match any templates inside code blocks.

@eashaw eashaw merged commit 2ca4f2f into main Jan 6, 2025
@eashaw eashaw deleted the website-update-markdown-code-blocks branch January 6, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Website request: allow templates wrapped in double curly braces in Markdown code blocks

2 participants