Documentation ¶
Overview ¶
Package jupyter provides extensions for goldmark and nb. Together they add support for inline images, which have their data stored as cell attachments, in markdown cells.
How it is achieved:
Goldmark extends nb with a custom "markdown" cell renderer which stores cell attachments to the parser.Context on every render.
Attachments extends goldmark with a custom link parser (ast.KindLink) and an image NodeRenderFunc.
The parser is context-aware and will get the related mime-bundle from the context and store it to node attributes for every link whose destination looks like "attachments:image.png"
Custom image renderer writes base64-encoded data from the mime-bundle if one's present, falling back to the destination URL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attachments ¶
Attachments adds support for Jupyter cell attachments to goldmark parser and renderer.
Types ¶
This section is empty.