mirror of
https://github.com/status-im/codimd.git
synced 2025-01-14 14:24:09 +00:00
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…
x
Reference in New Issue
Block a user