asciidoctor-mathematical icon indicating copy to clipboard operation
asciidoctor-mathematical copied to clipboard

imagesoutdir gets accidentaly formated

Open krOoze opened this issue 6 years ago • 2 comments

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.

krOoze avatar Oct 16 '18 00:10 krOoze

I will look into this issue.

ProgramFan avatar Oct 16 '18 07:10 ProgramFan

Any news?

krOoze avatar Jun 01 '20 20:06 krOoze