Markdown lists borked in 9.0
I do not know if bugs here warrant individual tickets. I suspect not, as the Markdown formatting library is 3rd party, is it?
This is a new bug in version 9.0 (we are using EE if this matters). Existing Wiki pages were broken.
1
In a page with a list, if code follows the list, first list item has the code formatted incorrectly:
Problematic formatting: https://gitlab.com/kkm/issue-30812/wikis/one-item
Fixed by adding another list item before the first: https://gitlab.com/kkm/issue-30812/wikis/one-item-fix but with a twist: added asterisk, space and two new lines at the very start of file. Just asterisk, some text and a single new line does not cut it!
2
When list contains code in three backtick blocks, and the code block has an empty line in it, the empty line seems to take precedence as a list terminator, and the rest of code is formatted as text.
Problematic formatting: https://gitlab.com/kkm/issue-30812/wikis/list-code-empty-line
Same code outside of list is normal: https://gitlab.com/kkm/issue-30812/wikis/code-empty-line-ok