Revert to original code to fix issue #111

I reverted to [the code in the original project](https://github.com/faelys/libsoldout/blob/e106f0d74a03fb5edbebe11ce4b46eef7f575456/markdown.c#L1145), which fixes the issue (all unit tests pass).