Coder Social home page Coder Social logo

Comments (9)

sethladd avatar sethladd commented on August 28, 2024

cc @keertip

from markdown.

srawlins avatar srawlins commented on August 28, 2024

😦 legit.

from markdown.

srawlins avatar srawlins commented on August 28, 2024

OK @sethladd, I investigated this a bit; we're using the 4-space rule, and a strictness in lists, so:

* one
  *  nested

will NOT nest. You need 4 spaces before the nested *. Also:

* one
    * nested

will NOT nest. You need a blank line before lists:

* one

    * two

should nest. The example in @munificent 's Effective Dart: Documentation correctly shows how to nest lists.

from markdown.

srawlins avatar srawlins commented on August 28, 2024

One might also consider this a dup of #14

from markdown.

sethladd avatar sethladd commented on August 28, 2024

Should we match GitHub here? Github's MD seems to be a defacto standard.

Also, thanks for taking a look!

from markdown.

kwalrath avatar kwalrath commented on August 28, 2024

In my markdown experience, I expect (through painful experience) to need a blank line above the first bullet, but none in the rest of the list.

Requiring blank lines within lists feels broken.

from markdown.

sethladd avatar sethladd commented on August 28, 2024

Requiring blank lines within lists feels broken.

Agreed.

from markdown.

munificent avatar munificent commented on August 28, 2024

Should we match GitHub here? Github's MD seems to be a defacto standard.

I think we should generally aim to match CommonMark but if there are places where that diverges from GitHub, we'll want to think long and hard about which side to lean towards.

Requiring blank lines within lists feels broken.

Here, it's only needed to start the nested list, but, yes, I agree. Markdown is actually really weird here. The presence of newlines affects the resulting output. If you have:

* A

* B

* C

Then you get an unordered list where each item is a paragraph. If you do:

* A
* B
* C

Then you get bare list items containing just the text with no <p>. There is no way in Markdown to have a list with a single item whose body is a single paragraph. 😕

from markdown.

srawlins avatar srawlins commented on August 28, 2024

#76 actually fixed this.

from markdown.

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.