pandoc-ext / diagram

Generate diagrams from embedded code; supports Mermaid, Dot/GraphViz, PlantUML, Asymptote, and TikZ.
MIT License
53 stars 9 forks source link

make test-tikz fails #22

Closed gerstorfer closed 1 month ago

gerstorfer commented 1 month ago

Running make test-tikz gives the following error:

Lua warning: diagram.lua: attempt to call a nil value
Error running filter diagram.lua:
attempt to call a nil value
stack traceback:
    diagram.lua:485: in function <diagram.lua:445>
    [C]: in ?
    [C]: in method 'walk'
    diagram.lua:531: in function 'Pandoc'
stack traceback:
    diagram.lua:531: in function 'Pandoc'
tarleb commented 1 month ago

It seems that this was the combination of the changes in 73caf6217092c4ad7a5e73a4be5946486da3a83b as well as an issue with pandoc's warn function. I've pushed commits to address both of these issues.

tarleb commented 1 month ago

Correction: it wasn't a problem with warn but a different issue in a recent commit. Either way, things should work now.

gerstorfer commented 1 month ago

Thank you very much for the very quick fix 🙏