-
Notifications
You must be signed in to change notification settings - Fork 14
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
Numbered lists when each number has more than 1 line of content? #150
Comments
bump Just to restate the problem more succinctly: I think
I should get (w.r.t. numbering):
but I get (w.r.t numbering):
|
What happens if you indent the content you want to place in the link? MarkdownAST should then pick it up as being part of the list element, not totally new text. |
If I do
I get
so they are all in the same list, but numbering still starts off not how it does in Markdown. Moreover, the indentation solution falls apart when I want to add
to be between 1. and 2., so something like
(spaces above/below the details block I think are necessary otherwise the detail block doesn't work properly) then it does strange things that are not what I want. I think the main problem is that the initial number 4. is ignored and turned into 1. If setting of the initial number worked as it does in plain Markdown then this would be easy. |
One workaround is simply to use raw HTML as follows:
(\\ is just to not trigger end of code block in the comment) which starts an ordered list with the number 4. |
Vitepress accepts HTML in Markdown, so this would be a good way to do it. |
Hi,
I am trying to create an enumerated list using DocumenterVitepress, but it's rendering not quite what I would want/expect. For example, if I do
it renders what it's supposed to render, i.e. a list of numbers 1-4 with the three letters. However, if I want to do something like
it renders (spaces between number and dot are there to prevent the github markdown kicking in which actually does what I'd want it to)
$1+1$
1 . qwe
1 . abc
2 . zxc
3 . ert
The problem is that instead of
``1+1``
I want to add::: details
containers for each item in the enumerated list, so it can't be in the same line. Am I missing something obvious on how to do it?The text was updated successfully, but these errors were encountered: