Coder Social home page Coder Social logo

Comments (3)

mdiep avatar mdiep commented on May 23, 2024

The Markdown spec is totally ambiguous about this input. It doesn't specify how many spaces are required to form a nested list. Some implementations require 4; others require 2.. It looks like people may be settling on 2 now because of CommonMark, so I'll leave this open with the intention of switching to that.

from mmmarkdown.

obuseme avatar obuseme commented on May 23, 2024

Thanks for the quick response! That makes sense. From an end user of this library perspective, I think two things could make it more awesome, documentation about supported markdown. Without looking at the code, how should I have known how to get nested lists? The second thing, would be, since there's an option to designate "GitHubFlavored" markdown, then I think it should be kept in-sync with that, and there it's pretty clearly https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#lists defined that two spaces indent a list. How can I help? Thanks again, this is great!

from mmmarkdown.

mdiep avatar mdiep commented on May 23, 2024

It should be pretty easy to change the code to use 2 spaces for lists if you wanted to open a PR. You'd also need to adjust any failing tests and possibly add a test like your example above.

from mmmarkdown.

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.