Open mathrick opened 2 years ago
Actually, I think I misread the output slightly; it's not the the ordered / unordered switch that makes it actually nest the output, it's either sufficient level of nesting, or the use of +
as the bullet, since sub-subitem 1
and sub-sub-subitem 1
are rendered at the same level.
Some more testing suggests it's "sufficient amount of nesting" that makes it work properly, and the "sufficient amount" is actually determined by the level of indentation in the source Markdown. This for instance renders properly:
- Item 4
+ Subitem 4
Resutling in:
This problem is caused by incorrect nesting handling in the underlying Markdown parser 3bmd
:
Same way it requires additional indentation for code blocks inside list items. I've created an issue on this problem a year ago: https://github.com/3b/3bmd/issues/45
Also, I've even created a comprehensive test-suite for checking regressions during 3bmd
fixes: https://github.com/3b/3bmd/pull/46
But seems it's author to busy to support this library :(
I'd like to use a Common Mark compatible parser, extensible and able to return document pieces as common lisp objects. But I didn't find such library for Common Lisp yet.
Nested Markdown lists result in incorrect HTML generated, which puts them all at the same level, unless there is a switch between ordered and unordered lists, in which case they're properly nested. Repro:
This results in the following output:![flattened-list](https://user-images.githubusercontent.com/179487/185274432-eda9eefb-09ae-4d9b-9018-ee6e2b4253e5.png)