wooorm / markdown-rs

CommonMark compliant markdown parser in Rust with ASTs and extensions
https://docs.rs/markdown/1.0.0-alpha.18/markdown/
MIT License
836 stars 41 forks source link

test: link and title with newline #79

Open ChristianMurphy opened 10 months ago

ChristianMurphy commented 10 months ago
[](a (a 
))

throws

thread panicked at 'expected link', src/subtokenize.rs:148:57

https://github.com/wooorm/markdown-rs/blob/56cd834cf88a58d3429b4b75489f161d57b28eaa/src/subtokenize.rs#L148

when in CommonMark it is valid https://spec.commonmark.org/dingus/?text=%5B%5D(a%20(a%20%0A)) and should render:

<p><a href="a" title="a 
"></a></p>