Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown (preview) nested ordered list rendering error #79976

Closed
MofX opened this issue Aug 28, 2019 · 2 comments
Closed

Markdown (preview) nested ordered list rendering error #79976

MofX opened this issue Aug 28, 2019 · 2 comments
Assignees
Labels
markdown Markdown support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@MofX
Copy link

MofX commented Aug 28, 2019

  • VSCode Version: 1.37.1

When ordered lists are nested in other lists, they only work if numeration starts at 1, otherwise the don't render as list. I don't know if it is only in the preview or also in other locations with markdown.

3. foo
2. foo
1. foo

------------------

1. foo
2. foo
3. foo

------------------

* foo
  3. foo
  2. foo
  1. foo

------------------

* foo
  1. foo
  2. foo
  3. foo

------------------

See
image

@vscodebot
Copy link

vscodebot bot commented Aug 28, 2019

@mjbvz
Copy link
Contributor

mjbvz commented Aug 28, 2019

I tested this using the common mark dingus and it looks like VS Code's preview matches commonmark's: https://spec.commonmark.org/dingus/?text=3.%20foo%0A2.%20foo%0A1.%20foo%0A%0A------------------%0A%0A1.%20foo%0A2.%20foo%0A3.%20foo%0A%0A------------------%0A%0A*%20foo%0A%20%203.%20foo%0A%20%202.%20foo%0A%20%201.%20foo%0A%0A------------------%0A%0A*%20foo%0A%20%201.%20foo%0A%20%202.%20foo%0A%20%203.%20foo%0A%0A------------------

I can't point out where this is documented in the spec but I think you should try asking this upstream on common mark (or on markdown-it which we use in VS Code)

@mjbvz mjbvz closed this as completed Aug 28, 2019
@mjbvz mjbvz added markdown Markdown support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Aug 28, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
markdown Markdown support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants