Vega-lite rendering issues in Marktest #5000
Replies: 1 comment 1 reply
|
You do not need a Vega server or any separately installed Vega package. MarkText renders Vega-Lite inside Electron with bundled JavaScript dependencies. The confusing part is the error text. In the released v0.17.1 code, the diagram renderer catches errors from So First test in Source Code Mode with the exact minimal example shipped in the MarkText docs—no ```vega-lite
{
"data": {"values": [
{"a": "C", "b": 2}, {"a": "D", "b": 7}, {"a": "E", "b": 4}
]},
"mark": "point",
"encoding": {
"x": {"field": "a", "type": "nominal"},
"y": {"field": "b", "type": "quantitative"}
}
}
```The source for that documented syntax is here: Your screenshot uses the current Vega-Lite grouped-bar example with
Also make sure the opening fence uses the language identifier exactly |
Uh oh!
There was an error while loading. Please reload this page.
Hi
I have installed Marktest via flatpak on linux mint and have also had it installed using the debian package, both behave the same. The problem I'm having is that mermaid diagrams seem to work fine from cutting and pasting examples, the vega-lite examples either show as a code block, syntactically highlighted, or as a blank box with a frontmatter reference before and after the empty box/fence. In both instances a box appears below with an error I believe stating < Invalid Sequence Codes >. I've added an image of the example taken from the Marktest user docs
I checked the package.json and it has vega-embed as a dependency so am I missing something, do I have to install a Vega server process or something external to Marktest?
Hope someone can help as I wanted to avoid using VScode for markdown as it seems overkill, yet it may be the logical path.
Best Regards
Martyn
All reactions