asciidoctor / asciidoctor-mathematical

An extension for Asciidoctor that converts the content of STEM blocks and inline macros using Mathematical.
MIT License
49 stars 44 forks source link

imagesoutdir gets accidentaly formated #43

Open krOoze opened 5 years ago

krOoze commented 5 years ago

imagesoutdir somehow gets accidentaly formated in some cases.

E.g. when I introduce _ in the path, and also after some math in the document.

Repro:

Blah latexmath:[a = b] _x_ blah.

processed with:

asciidoctor -b html5 -r asciidoctor-mathematical -a stem=latexmath \
-a mathematical-format=svg -a imagesoutdir=$PWD/_eq imgoutdir.adoc

produces:

<img src="whatever/<em>eq/stem-e62d239822831122dd571c0d362408f7.svg"

Where the <em> that replaced _ breaks things. I think the path should be taken verbatim. Or am I supposed to decorate the attribute somehow so replacements are not done on it? Though pass:[] or +++ seems to break things even more.

Tested with asciidoctor (1.5.7.1) and asciidoctor-mathematical (0.2.2) and other dependencies are current versions of whatever the ruby-gems provides.

ProgramFan commented 5 years ago

I will look into this issue.

krOoze commented 4 years ago

Any news?