Closed aubertc closed 4 months ago
Ok, https://github.com/raghur/mermaid-filter/issues/96 clarified it: it's not a pandoc variable, but an environment variable.
On Unix systems, the command needs to be something along the lines of
export MERMAID_FILTER_CAPTION='Test' && pandoc -t html -F mermaid-filter -o something.html test.md
If I process the following:
using
Then I obtain in my
html
file thealt="Test 1, 2"
bit that is specified by the caption.But if I remove
caption="Test 1, 2"
from the previous file, and process it usingthen I don't obtain the
alt
indication in thehtml
file. What am I missing? I have tried with the-M MERMAID_FILTER_CAPTION:"Test"
syntax as well, but I simply cannot pass those meta-data from the command line using mermaid-filter.