-
Notifications
You must be signed in to change notification settings - Fork 230
Description
It would be really nice if some sort of whiteboard could be embedded in markdown files so that one can easily insert sketches as figures. These should probably have some sort of size limitations so they do not get out of hand (i.e. they should convert to embeddable single-page PDF figures when converting to LaTeX and to SVG when converted to HTML).
It seems to me this might be almost trivial to implement, similarly to the way code cells now work.
Not sure of the ideal syntax yet, but perhaps something like a figure environment so that one can also add captions, make it a margin figure etc. (thinking ahead to writing JupyterBooks).
:::{figure} fig-1.*
Here is my figure caption!
:::
The following also work with JupyterBook: i.e. just apply a wildcard to the file name.

<img src="qt4_editor_options.*"/>
Unfortunately, Jupyter Notebooks do not recognize the wildcard.
Perhaps the behaviour could be that, if fig-1.board exists, then it is used (with an editable view on CoCalc), but upon save, the contents are output into fig-1.svg, fig-1.pdf, etc. when the file is saved so that the markdown file can be used off of CoCalc. (Not sure the best place to store which formats should be saved, but probably in the .board file.)