Methods
(inner) process(text) → {Promise}
Function to process markdown text and replace marked-vega codeblocks
with the correspondingg base64 embedded images. Return the `Promise` to the
modified markdown text.
Parameters:
Name | Type | Description |
---|---|---|
text |
String | The markdown text to process. |
- Source:
Returns:
- Type
- Promise
(inner) render(block) → {Promise|Boolean}
Function to return an image Markdown tag with a base64 data of the rendered
Vega or Vega-Lite spec's image. Note that this is an **async** function.
Return `false` if not a marked-vega codeblock.
Otherwise return a `Promise` to the image Markdown tag.
Parameters:
Name | Type | Description |
---|---|---|
block |
Block | The `Block` to render. |
- Source:
Returns:
- Type
- Promise | Boolean