Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX -> Markdown Nested Enumerate Broken #1774

Open
rjturner opened this issue Nov 22, 2014 · 1 comment
Open

LaTeX -> Markdown Nested Enumerate Broken #1774

rjturner opened this issue Nov 22, 2014 · 1 comment

Comments

@rjturner
Copy link

I am converting LaTeX to Markdown, and I found that nested enumerated lists do not correctly change the enumeration label from arabic to lowercase as done by LaTeX.

My input is test.tex:

\begin{enumerate}
    \item Item 1.
        \begin{enumerate}
            \item Item (a)
            \item Item (b)
        \end{enumerate}
    \item Item 2.
\end{enumerate}

Running pandoc -f latex -t markdown test.tex yields:

1.  Item 1.

    1.  Item (a)

    2.  Item (b)

2.  Item 2.

The sublist should be labeled with (a) and (b), not 1. and 2.

I hesitated to report this but then remembered that LaTeX to Markdown conversion is probably an uncommon use case (the analogous Markdown to LaTeX case works beautifully). Further, I could not find any reference to it in past issues.

@jgm
Copy link
Owner

jgm commented Mar 15, 2017

I suppose this could be handled at the level of the LaTeX reader, which could try to assign list styles to sublists in a way that matches LaTeX's (NB. overridable) defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants