Fix broken IO.ANSI.Docs parser

This PR will fix issue #2903.

All previous tests are still passing (as I checked they are compliant with the Github's markdown parsing behavior).
Should we also add a test for `*`?