pillar icon indicating copy to clipboard operation
pillar copied to clipboard

Impossible to inline LaTeX if it contains a colon

Open olekscode opened this issue 6 years ago • 4 comments

This gets parsed

{{{
Some LaTeX code
}}}

But this does not

{{{
Some LaTeX code :)
}}}

Maybe there is some way of escaping the colon that I don't know of?

olekscode avatar Nov 12 '19 12:11 olekscode

this is really strange. I have no idea why. May be a parser bug. Did you try :

Ducasse avatar Nov 12 '19 16:11 Ducasse

Yes, I just wrote a smiley here for illustration. In fact, I discovered this problem when I was trying to label mathematical equations:

{{{
\begin{equation}
  \label{eq:support}
  s_T(I) = \frac{c_T(I)}{|T|}
\end{equation}
}}}

olekscode avatar Nov 12 '19 16:11 olekscode

I think it's happening because in the previous versions of Pillar, we had to inline LaTeX like this:

{{{latex:
Some LaTeX code
}}}

And HTML like this:

{{{html:
Some HTML code
}}}

So colon confuses the parser

olekscode avatar Nov 12 '19 16:11 olekscode

During christmax holidays I will try to allocate time for Pillar.

Ducasse avatar Nov 12 '19 19:11 Ducasse