refactor: polish

- Fix mis-used dependencies. Add the roughly proposed 'extends' model
  for notebook renderers. Keep it out of contribution schema for now
	until we can work it more.
- Made new loading work with JS modules.
- Consolidated the 'old style' code in the renderer so that we can just
  delete it when the time comes.
- Removed duplicated code and sharp edges from the 'queue' mechaism.
This commit is contained in:
Connor Peet
2021-05-18 16:59:09 -07:00
parent 5c4fae9176
commit 616e0fd992
6 changed files with 264 additions and 240 deletions

View File

@@ -25,24 +25,18 @@
{
"id": "markdownItRenderer-katex",
"displayName": "Markdown it katex renderer",
"entrypoint": "./notebook-out/katex.js",
"mimeTypes": [
"text/markdown"
],
"dependencies": [
"markdownItRenderer"
]
"entrypoint": {
"extends": "markdownItRenderer",
"path": "./notebook-out/katex.js"
}
},
{
"id": "markdownItRenderer-emoji",
"displayName": "Markdown it emoji renderer",
"entrypoint": "./notebook-out/emoji.js",
"mimeTypes": [
"text/markdown"
],
"dependencies": [
"markdownItRenderer"
]
"entrypoint": {
"extends": "markdownItRenderer",
"path": "./notebook-out/emoji.js"
}
}
]
},