mirror of https://github.com/status-im/codimd.git
feat: use svg for vega-lite renderer
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
parent
0a253a4f32
commit
3a5c6fa5ed
|
@ -437,7 +437,7 @@ export function finishView (view) {
|
|||
const specText = $value.text()
|
||||
|
||||
$value.unwrap()
|
||||
window.vegaEmbed($ele[0], JSON.parse(specText))
|
||||
window.vegaEmbed($ele[0], JSON.parse(specText), { renderer: 'svg' })
|
||||
.then(result => {
|
||||
$ele.addClass('vega')
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue