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

Nested automatically numbered (0.) lists don't render more than one level deep. #184429

Closed
RokeJulianLockhart opened this issue Jun 6, 2023 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster *out-of-scope Posted issue is not in scope of VS Code

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Jun 6, 2023

Does this issue occur when all extensions are disabled? Yes
VS Code Version code-insiders-3.79.0
OS Version Linux RQN6C6 6.3.4-1-default #1 SMP PREEMPT_DYNAMIC Mon May 29 06:22:29 UTC 2023 (2c66b1f) x86_64 x86_64 x86_64 GNU/Linux

Steps to Reproduce

image

  1. Duplication

    0.	test
    0.	test
    0.	0.	test
    0.	0.	test
    1. test
    2. test
      1. test
      1. test
  2. Pure indentation

    0.	test
    0.	test
    	0.	test
    	0.	test
    1. test
    2. test
      0. test
      0. test

Obviously, not even GitHub does.

Related

  1. [Feature Request] Automatic list numbering only works for first level of list depth. damionx7/Zettel-Notes-Documentation#11 (comment)
  2. https://www.reddit.com/r/Markdown/comments/12syve7/comment/jh4plj7/?utm_source=share&utm_medium=web2x&context=3
@mjbvz
Copy link
Contributor

mjbvz commented Jun 6, 2023

What's the expected behavior? Our rendering seems consistent with markdown-it

Commonmark also won't render this correctly at all without a new line before the nested list: commonmark demo

@mjbvz mjbvz added the ~info-needed Issue requires more information from poster (with bot comment) label Jun 6, 2023
@VSCodeTriageBot
Copy link
Collaborator

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

@VSCodeTriageBot VSCodeTriageBot added info-needed Issue requires more information from poster and removed ~info-needed Issue requires more information from poster (with bot comment) labels Jun 6, 2023
@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Jun 9, 2023

@mjbvz,

Commonmark also won't render this correctly at all without a new line before the nested list: commonmark demo

It wouldn't make sense that

0.	Placeholder
	1.	Placeholder
	2.	Placeholder
	3.	Placeholder
	4.	Placeholder
0.	Placeholder
	1.	Placeholder
0.	Placeholder

is rendered correctly then, when

0.	Placeholder
	0.	Placeholder
	0.	Placeholder
	0.	Placeholder
	0.	Placeholder
0.	Placeholder
	0.	Placeholder
0.	Placeholder

is not.


However, the spaced indented lists don't render correctly either:

0.	**Manually numbered indented section**

	0.	**Non-separated**

		0.	Placeholder
			1.	Placeholder
			2.	Placeholder
			3.	Placeholder
			4.	Placeholder
		0.	Placeholder
			1.	Placeholder
		0.	Placeholder

	0.	**Separated**

		0.	Placeholder

			1.	Placeholder
			2.	Placeholder
			3.	Placeholder
			4.	Placeholder

		0.	Placeholder

			1.	Placeholder

		0.	Placeholder

0.	**Manually numbered indented section**

	0.	**Non-separated**

		0.	Placeholder
			0.	Placeholder
			0.	Placeholder
			0.	Placeholder
			0.	Placeholder
		0.	Placeholder
			0.	Placeholder
		0.	Placeholder

	0.	**Separated**

		0.	Placeholder

			0.	Placeholder
			0.	Placeholder
			0.	Placeholder
			0.	Placeholder

		0.	Placeholder

			0.	Placeholder

		0.	Placeholder

is rendered as

image

@mjbvz
Copy link
Contributor

mjbvz commented Jun 9, 2023

I don't think this is a VS Code issue. Please bring this up with markdown-it if you believe it's a bug: https://github.com/markdown-it/markdown-it

@RokeJulianLockhart
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

4 participants