Closed m00nwtchr closed 3 years ago
Hi there!
The README example is short but incomplete. The documentation explains that syntax highlighting can be activated like so:
```{.python .matplotlib caption="example"}
import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
I personally use VScode without any Markdown-specific extensions and syntax highlighting works correctly using the above snippet.
Ah, thx, i missed that
Currently, at least as far as i know for the codeblocks to be picked up by pandoc-plot they have to exactly match the format specified in the readme, which disables syntax highlighting and language features in editors like VSCode. I'td be nice if you could use something liike this:
```py{.matplotlib} import matplotlib.pyplot as plt ```
for the marker, it looks like this is still recognized by vscode as a python code block, so you just need to allow this in pandoc-plot