fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
525 stars 55 forks source link

Nested list unexpected behavior #144

Closed htbarrow closed 11 years ago

htbarrow commented 11 years ago

A similar issue had previously been resolved, but using four spaces to precede the list does not seem to have solved the issue for me.

When I type the following:

1. One  
    a. Two
    b. Three
2. Four  

The tex that is generated looks thusly:

\begin{enumerate}
\item One\\
a. Two
b. Three

\item Four

\end{enumerate}

What I had expected was:

\begin{enumerate}
\item One\\
\begin{enumerate}
\item Two
\item Three
\end{enumerate}
\item Four

\end{enumerate}

Any thoughts on why this might be occurring? Again, I am definitely preceding the nested parts with four spaces. I have tried it also with and without a double space before the nesting, with no difference in result (other than a closer approximation of what the nesting might look like if it were parsing the way I might expect it to).

Also, thank you for getting me interested in Latex. I'm finding it a pretty interesting diversion from my work.

-Trip

fletcher commented 11 years ago

That's because a. does not start lists in Markdown or MultiMarkdown.

http://daringfireball.net/projects/markdown/syntax

htbarrow commented 11 years ago

D'oh!

I should've known it was a syntax issue on my part. I even looked at the syntax guide!

Thanks for the quick reply- I'm loving mmd for motions and other legal documents (I swear I'm a better lawyer than a markdown user).

On Jan 26, 2013, at 4:07 PM, "Fletcher T. Penney" notifications@github.com wrote:

That's because a. does not start lists in Markdown or MultiMarkdown.

http://daringfireball.net/projects/markdown/syntax

— Reply to this email directly or view it on GitHubhttps://github.com/fletcher/peg-multimarkdown/issues/144#issuecomment-12742301.