loiclec / Apodimark

Fast, flexible markdown parser written in Swift
MIT License
0 stars 0 forks source link

Multiline monospaced text parsing is broken #2

Open loiclec opened 8 years ago

loiclec commented 8 years ago

This:

> `Hello
> World` 

will give:

Hello > World

Because the content of monospaced text is only defined by a range of indices.

The correct behavior should give:

Hello World

This could probably be fixed by making monospaced text hold an array of ranges and populating that array by looking at .start and .end delimiters in the delimiter array.

loiclec commented 8 years ago

Some progress here: 2974873f1ef0f897aa6e9b63d92371f7b2ffb720 But problem now is it contains softbreaks and hardbreaks. Monospaced text should not contain hardbreaks.