Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

NuxtPress tries to parse vue template syntax from code examples #55

Open
pimlie opened this issue Aug 27, 2019 · 0 comments
Open

NuxtPress tries to parse vue template syntax from code examples #55

pimlie opened this issue Aug 27, 2019 · 0 comments

Comments

@pimlie
Copy link
Collaborator

pimlie commented Aug 27, 2019

Escaping vue template syntax with @nuxt/markdown fails on the vue-meta repo, more specifically the /guide/ssr/ page

Temporary workaround is to use

body: body.replace(/(<code[^>]*>)([\s\S]+?)(<\/code>)/gi, (_, m1, m2, m3) => `${m1}${m2.replace(/{{/g, '{\u200B{')}${m3}`),

in data.js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant