I need to parse ordered list of wikitext to html using wiky.js. This javascript is mainly using regex to do that.
E.g.
# Item1
# Item2
# Item3
# Item4
## Sub-item 1
### Sub-sub-item
is displayed as
1.Item1
2.Item2
3.Item3
4.Item4
1.Sub-item 1
1. Sub-sub-item
I need to get the HTML version of the code. Currently wiky.js uses the old version of parsing ordered list which is not supported by Wiki Editor now.