Reapply markup renderers change

Rewriting how we do replacements in the webviewPreloads function to hopefully handle optimization better
This commit is contained in:
Matt Bierner
2021-04-26 19:58:24 -07:00
parent c8c96aae9d
commit 7770708545
21 changed files with 291 additions and 202 deletions

View File

@@ -18,23 +18,25 @@
"virtualWorkspaces": false
},
"contributes": {
"notebookMarkdownRenderer": [
"notebookMarkupRenderers": [
{
"id": "markdownItRenderer-katex",
"displayName": "Markdown it katex renderer",
"entrypoint": "./notebook-out/katex.js"
"entrypoint": "./notebook-out/katex.js",
"dependsOn": "markdownItRenderer"
},
{
"id": "markdownItRenderer-emoji",
"displayName": "Markdown it emoji renderer",
"entrypoint": "./notebook-out/emoji.js"
"entrypoint": "./notebook-out/emoji.js",
"dependsOn": "markdownItRenderer"
}
]
},
"scripts": {
"compile": "npm run build-notebook",
"watch": "npm run build-notebook",
"build-notebook": "npx webpack-cli --config webpack.notebook.js --mode production"
"build-notebook": "node ./esbuild"
},
"devDependencies": {
"@iktakahiro/markdown-it-katex": "https://github.com/mjbvz/markdown-it-katex.git",