Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Ordered list number always starts with 1 #502

Open
nschneid opened this issue Oct 2, 2017 · 3 comments
Open

Ordered list number always starts with 1 #502

nschneid opened this issue Oct 2, 2017 · 3 comments

Comments

@nschneid
Copy link

nschneid commented Oct 2, 2017

According to the GFM spec, the list should start with the first list item's number. Therefore,

3. begin
3. and
4. continue
4) new

should be rendered as

  1. begin
  2. and
  3. continue
  1. new

But currently (0.159.13 in Atom 1.20.1 on OS X 10.11.6) it previews as

  1. begin
  2. and
  3. continue 4) new
@nineway
Copy link

nineway commented Nov 28, 2017

Hi, if someone can pinpoint where the code exists about how the markdown is rendered in the markdown-preview repository, I would gladly try to fix this.

@IanBurgan
Copy link

As a result of this issue, paragraphs with hard wrapped numerals are able to interrupt paragraphs. Hopefully the fix for this issue also solves this.

Relevant GFM Spec

@paulroub
Copy link

Appears to be rooted in the marked library used for Markdown rendering. I've logged issue 1143 there, plus a PR that sorts out at least part of the problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants