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

Numeric list does not add new lines for it's numbered parts. #5408

Closed
4 tasks
blazkovicz opened this issue Aug 23, 2021 · 6 comments
Closed
4 tasks

Numeric list does not add new lines for it's numbered parts. #5408

blazkovicz opened this issue Aug 23, 2021 · 6 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: working as intended This issue is intended behavior, there's no need to take any action.

Comments

@blazkovicz
Copy link

🐛 Bug Report

Prerequisites

  • [x ] I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io
  • I have read the console error message carefully (if applicable)

Description

Docusaurus promise to support markdown with numeric lists, but does not.

Expected behavior

Each position of numeric list starts from new line.

Actual behavior

Numeric list is inlined in one mash text passage.

Reproducible demo

Open example and go from main menu to "Numeric list bug"
https://stackblitz.com/edit/github-mznvzm?file=docs/numeric-list-bug.md

@blazkovicz blazkovicz added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Aug 23, 2021
@Josh-Cena
Copy link
Collaborator

Is 1) even valid Markdown syntax? I thought the Markdown spec only defines 1. ?

@lex111
Copy link
Contributor

lex111 commented Aug 24, 2021

In all likelihood, this is CommonMark syntax, which we do not currently support (see #3018 for more details). Therefore, use the standardized Markdown syntax to define a list.

@lex111 lex111 closed this as completed Aug 24, 2021
@slorber
Copy link
Collaborator

slorber commented Aug 24, 2021

MDX playground does not support it, and we don't support things that MDX does not support (apart a few exceptions like admonitions for which we extend mdx): https://mdxjs.com/playground/

@blazkovicz
Copy link
Author

blazkovicz commented Aug 25, 2021

let's see https://docusaurus.io/docs/markdown-features#standard-features

The standard Markdown syntax is supported

https://daringfireball.net/projects/markdown/syntax -> https://daringfireball.net/projects/markdown/syntax#list -> Ordered lists

docs say, docusaurus supports numbered lists

where am I wrong, @lex111 ?

@Josh-Cena
Copy link
Collaborator

But the doc link you posted didn't say that 1) is valid?

@blazkovicz
Copy link
Author

My apologies, I misunderstood your answers at first and thought you said that numeric lists are not supported completely.

Syntax with period works. Thank you for your patience.

@Josh-Cena Josh-Cena added closed: working as intended This issue is intended behavior, there's no need to take any action. and removed status: needs triage This issue has not been triaged by maintainers labels Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: working as intended This issue is intended behavior, there's no need to take any action.
Projects
None yet
Development

No branches or pull requests

4 participants