Open ronaldlangeveld opened 4 months ago
Thanks for reporting - what is the expected outcome here?
Thanks for reporting - what is the expected outcome here?
To be able to type a header, with a number in front, without automatically converting it to numbered list, eg:
Thanks! :)
Ah, have been meaning to look into this one.
@acywatson you know the list plugin the most, can you help me on this one?
This needs a generic fix, allowing for bulleting/unbulleting of code block and quote block as well.
Thanks for looking into it @ivailop7 🙏🏻
up
I think this is actually an issue with the markdown shortcut plugin, as opposed to the list plugin. If you just don't use the markdown shortcut plugin, this won't happen.
It does probably also make sense to change the markdown plugin somehow to not to the list transformation in certain situations (like when the parent is a heading). I'm not sure if this should be the default or a config option, though.
Tried it with MarkdownShortcuts plugin disabled, it's still not behaving correctly. I had look at this some time ago. It's an issue for anything that doesn't have a paragraph as a parent, which is why bulleting of links and images works (they are children of a paragraph), while Quote, Heading, Collapsible Section are not.
Tried it with MarkdownShortcuts plugin disabled, it's still not behaving correctly. I had look at this some time ago. It's an issue for anything that doesn't have a paragraph as a parent, which is why bulleting of links and images works (they are children of a paragraph), while Quote, Heading, Collapsible Section are not.
So that sounds like a different thing. The issue described here is about entering a "1." followed by a space in a heading. The ListPlugin doesn't look for that by default.
Tried it with MarkdownShortcuts plugin disabled, it's still not behaving correctly. I had look at this some time ago. It's an issue for anything that doesn't have a paragraph as a parent, which is why bulleting of links and images works (they are children of a paragraph), while Quote, Heading, Collapsible Section are not.
So that sounds like a different thing. The issue described here is about entering a "1." followed by a space in a heading. The ListPlugin doesn't look for that by default.
Oh, my fault, misinterpreted the original post. I was referring to the ability to have a heading inside a bullet list vs the auto-conversion referred to here. Ignore my comment, you are right.
Lexical version: 0.13.1
Steps To Reproduce