Open jsilveira opened 4 months ago
After inspecting the code, I think the issue is that there is unexpected whitespace before the list items.
The fix seems as easy as changing the \s?
for \s*
to allow any number of whitespaces:
- const unbulletedListGlobalPattern = /\{\{(?:unbulleted list|ubl|ubt|ublist|unbullet)\s?\|([^\}\}]+)\}\}/gi;
+ const unbulletedListGlobalPattern = /\{\{(?:unbulleted list|ubl|ubt|ublist|unbullet)\s*\|([^\}\}]+)\}\}/gi;
When parsing unbulleted lists, it just returns "unbulleted list" instead of parsing the list.
For example: