Comments (9)
cc @keertip
from markdown.
😦 legit.
from markdown.
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.
One might also consider this a dup of #14
from markdown.
Should we match GitHub here? Github's MD seems to be a defacto standard.
Also, thanks for taking a look!
from markdown.
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.
Requiring blank lines within lists feels broken.
Agreed.
from markdown.
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.
#76 actually fixed this.
from markdown.
Related Issues (20)
- `Copy Code` Button HOT 3
- Is there a way to preserve successives linebreaks ? HOT 2
- github alerts parsing doesn't support multiple paragraphs
- An extra checkbox is generated for list with checkbox if it mixes with empty lines
- Unusually long parsing times for not that long documents HOT 1
- Crash "Bad state: No element" in AlertBlockSyntax.parseChildLines HOT 1
- The image tag's src is not encoded properly to avoid XSS attack
- Github single tilde strikethrough HOT 1
- [controversial] Breaking API proposal HOT 4
- tag-like (but not valid HTML tag) text should be escaped HOT 12
- When Image src encoded, it changes the valid url to mismatched one HOT 2
- Make it possible to ignore unbalanced tokens (**, *) HOT 4
- Make all BlockParser and InlineParser APIs public HOT 2
- Checkbox List shall put the INPUT element inside the P element if an extra blank line is put between list items
- Make default syntaxes public HOT 2
- List types are not saved in HTML for reuse HOT 2
- Line breaks are ignored HOT 3
- Image links breaks due to incorrect encoding HOT 1
- How to extend generated HTML with styles? HOT 1
- Add support for Custom Heading Ids - header_atributes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown.