Docs: fenced code blocks without lang break build
if you have a markdown file in src/content with
please imagine the '
are backticks, i could not escape them for the love of dog
'''
echo foo
'''
compilation will break with an error about node.lang.startsWith
failing, node.lang
being null
, out of mdsvex-sveld.
Adding a lang to the triple backtick will solve this:
'''shell
echo foo
'''
This should be fixed upstream. I have not isolated the problem or created an MWE, so can't file an issue there, but the fix that worked locally:
node_modules/mdsvex-sveld/index.js:27
//if (node.lang.startsWith("docs")) {
if (node.lang?.startsWith("docs")) {
// ^ here