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

Strange behaviour of the ordered/unordered lists #40

Open
GoogleCodeExporter opened this issue May 9, 2015 · 2 comments
Open

Strange behaviour of the ordered/unordered lists #40

GoogleCodeExporter opened this issue May 9, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Passing this text

    - lion
    - tiger
    - cougar
    - smilodon
    - Garfield




    1. London
    2. Paris
    3. Barcelona
    4. Kraków


I'm getting this beauty

    <ul>
    <li>lion</li>
    <li>tiger</li>
    <li>cougar</li>
    <li>smilodon</li>
    <li><p>Garfield</p>

    <ol>
    <li>London</li>
    <li>Paris</li>
    <li>Barcelona</li>
    <li>Kraków</li>
    </ol></li>
    </ul>

... although I am expecting something more conventional:

    <ul>
    <li>lion</li>
    <li>tiger</li>
    <li>cougar</li>
    <li>smilodon</li>
    <li>Garfield</li>
    </ul>


    <ol>
    <li>London</li>
    <li>Paris</li>
    <li>Barcelona</li>
    <li>Kraków</li>
    </ol>


I am not sure whether it is a bug or just a feature. Trying to solve it alone 
but if someone knows the right direction I'd be *very* grateful.

Thanks in advance

Original issue reported on code.google.com by Lord.ind...@gmail.com on 25 Jan 2011 at 12:57

@GoogleCodeExporter
Copy link
Author

most Markdown parsers don't handle this well

http://goo.gl/5Bqka

Original comment by wump...@gmail.com on 28 Feb 2011 at 5:03

@GoogleCodeExporter
Copy link
Author

Line 1174 of the "Markdown.cs":

Change from "\n{{2,}}" to "\n{{2,}}|\Z" would fix this.

Original comment by Lord.ind...@gmail.com on 28 Nov 2011 at 10:35

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

1 participant