Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Should a styled paragraph maintain its own style when inserting it in a list ? #179
Lets consider the following code:
As far as I know, when applying the insertOrderedList/insertUnorderedList command, the newly created list item has to be merged with its previous list element sibling. The question is, what's the expected behavior regarding the paragraph's style ? Should we keep it even implying we'll breaking the list element's style ?
What would be the behavior if there was no previous list element sibling and the selected text will become the only list item if the newly created list ? Should we keep the paragraph's style in that case ?
Depending on the answers to the questions above, should we behave differently in those cases ? Why ? IS there any spec/doc describing how to proceed in the different cases where text paragraphs are transformed into list items via the insertOrderedList/insertUnorderedList command ?