Works pretty well, but at a certain point in the markdown file I exported, the formatting for codeblocks started getting a little wonky. The final three backticks would appear on the same line as the final line of code, which could not be parsed properly by VS Code (or any standard markdown linter). If you just added an explicit new line (\n) before the closing backticks in your regex (e.g: return `\`\`\`${lang}\n${code.trim()}\n\`\`\`\n`), that should solve it. Otherwise, it works great and integrates really nicely with the interface.
Works pretty well, but at a certain point in the markdown file I exported, the formatting for codeblocks started getting a little wonky. The final three backticks would appear on the same line as the final line of code, which could not be parsed properly by VS Code (or any standard markdown linter). If you just added an explicit new line (\n) before the closing backticks in your regex (e.g: return `\`\`\`${lang}\n${code.trim()}\n\`\`\`\n`), that should solve it. Otherwise, it works great and integrates really nicely with the interface.