press icon indicating copy to clipboard operation
press copied to clipboard

NuxtPress tries to parse vue template syntax from code examples

Open pimlie opened this issue 6 years ago • 0 comments

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

pimlie avatar Aug 27 '19 07:08 pimlie