Coder Social home page Coder Social logo

Comments (1)

vsch avatar vsch commented on May 24, 2024

@markwoon, you need 4 spaces for indentation for sub-lists. GitHub lets you use just one for the first sub-list but that is completely non-standard. In markdown 0-3 spaces are tolerated as not indents. I also don't know if it is a bug or a feature because the second sub-list needs 2 spaces.

* a
 * sub a
   * sub sub a
     * sub sub a 
* b

to make it more portable across other markdown implementations change it to:

* a
    * sub a
        * sub sub a
            * sub sub a 
* b

Thank you for pointing out the difference. I don't know if I will be able to duplicate every nuance of GFM markdown parsing especially when they go way off the 'standard' as described by the original Markdown

I will consider how to show that the indentations are insufficient for a sub-item so that you get visual feedback in the source that it is not a sub-item but another item in the list.

from idea-multimarkdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.