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).