List items starting with brackets broken in LaTeX output #414
Labels
Comments
There are already many places in kramdown's LaTeX converter that use Thanks for reporting this bug! |
@RyanKoppenhaver-NCC I have looked at this and putting This is fixed in the next release. |
gettalong
added a commit
that referenced
this issue
Sep 3, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the markdown input:
...kramdown generates this LaTeX output:
LaTeX then processes
[foo]
as an optional parameter to\item
, specifying the bullet point symbol. (The intervening whitespace is ignored.) This results in output that looks like this:The issue also applies to ordered lists, and to input where the brackets are not escaped, but kramdown can't find a corresponding link definition, so it passes the brackets through. It's possible other LaTex output has similar issues, but I haven't looked in depth.
Based on some messing around, I think this can be fixed by inserting an empty group
{}
or a\relax
command into the output after\item
, or by transforming the leading[
into either{[}
or\char91
. I kind of like the first option, but I'm by no means a TeX/LaTeX expert, so I'm not sure if another one might be more technically correct.The text was updated successfully, but these errors were encountered: