-
Notifications
You must be signed in to change notification settings - Fork 4
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
Custom syntax isn't rendered when indented #418
Comments
Might be fixed by #421 |
Hey @florent-leborgne I noticed the same. When indenting by 2 spaces instead of 4 it works as expected. @reakaleek, did this fix (#421) apply to bulleted lists only? I'm noticing the same issue with numbered lists. Should I open a separate bug for that? |
There is indeed a difference if it's a numberered list :::::{dropdown}
- List Item 1
- List Item 2
- Sub List Item 1
- Sub List Item 2
Hello, World!
:::{note}
Hello, World!
:::
## What
:::::
:::::{dropdown}
1. List Item 1
2. List Item 2
1. Sub List Item 1
2. Sub List Item 2
Hello, World!
:::{note}
Hello, World!
:::
## What
::::: |
Another example I have is
renders as |
👍 Just refreshed my docs-builder and I can confirm Nat's comments:
|
I guess the reason why it's 2 on bullet lists and 3 on numbered lists is, it needs to be aligned with the parent item. E.g.
|
This behaviour seems to be native to MyST. I think the best path forward here, is to create a warning if the spaces don't match the requirement. WDYT? |
I'd say it depends:
|
Btw for nested lists.. I don't think the guideline should be X spaces. But that it needs to align with the text of the list item. (At least, this is how I think it works) |
Sounds good, it'd be good to call this out to writers while we're working on cleaning up our files, as in their migrated state, not everything is aligned out of the box. And many might just think they just need to wait for a full fix :D |
Describe the bug
Seen on image blocks and admonitions so far: whenever the block is indented (for example, as part of a list item), it's not rendered in the output. For example:
Expected behavior
The content is properly rendered and indented
Steps to reproduce
No response
Tooling
The text was updated successfully, but these errors were encountered: