Commit Graph

9 Commits

Author SHA1 Message Date
Matt Bierner
40321932fc Render KaTeX errors in notebooks
Fixes #122413
2021-05-06 17:10:33 -07:00
Matt Bierner
7770708545 Reapply markup renderers change
Rewriting how we do replacements in the webviewPreloads function to hopefully handle optimization better
2021-04-28 10:44:25 -07:00
Matt Bierner
fe7c5aba01 Revert "Better notebook markup renderer api (#121882)"
This reverts commit 4cb27d2ec7.
2021-04-26 19:43:16 -07:00
Matt Bierner
4cb27d2ec7 Better notebook markup renderer api (#121882)
* Better notebook markup renderer api

For #121256

- Use js modules for notebook output renderers
- Rename apis from `markdown` to `markup`
- Use imports and exports for apis instead of globals for apis
- Use esbuild instead of webpack so we can emit js modules
- Clearly split top level markup renderes from renderers that extend other renderers

* Use constant instead of comment for replacement
2021-04-26 16:30:34 -07:00
Matt Bierner
d4412e708a Render markdown preview cells inside a shadow dom (#120137)
* Render markdown preview cells inside a shadow dom

Fixes #119971

This moves all markdown previews into shadow doms. This lets us prevent styles from outside the preview leak into the preview, and also prevents styles from the preview leak out into the rest of the notebook

* Use composedPath for handling events in webviews

This lets us handle clicks triggered inside of a shadow dom
2021-03-30 14:17:15 -07:00
Matt Bierner
fc8d7681c4 Make sure katex styles are shipped under root of
Also copies of just the katex css we need instead of bundling the entire module
2021-03-16 17:43:52 -07:00
Matt Bierner
581a659d42 Update markdown notebook scripts 2021-03-16 17:28:29 -07:00
Matt Bierner
d31566b57f Don't include css in main katex bundle 2021-03-11 14:03:01 -08:00
Matt Bierner
b3a33306fb Add markdown emoji for testing in notebooks 2021-02-22 18:10:27 -08:00