Closed ShubhamVerma1811 closed 2 years ago
Hey, thanks for the contribution. Works as expected however as you mentioned it doesn't support nested lists. The current implementation uses a counter, I guess we can accomplish the nested numbering recursively.
Probably by adding a new argument to blocksToMarkdown
. If a block has nesting then we can pass a new instance of the counter with the initial value 1
to blocksToMarkdown
and it gets incremented.
This is a very vague idea so I'm not sure if it'll work but I'll share an example snippet shortly to make things clear.
Right, I got the gist of what you are saying.. Let me try something along those lines.
Been busy with work, will continue to look into this issue
Fixed in #38
This PR aims to fix #18 .
I have a created a class variable that would act as counter for ordered list. The implementation of this is open for discussion.
It does not support nested
with numbers like