tristanjuricek / knockoff

A Markdown parser + object model in scala
http://tristanjuricek.github.com/knockoff
BSD 3-Clause "New" or "Revised" License
102 stars 17 forks source link

Strange link matching problem #16

Closed tristanjuricek closed 15 years ago

tristanjuricek commented 15 years ago

It looks like a regular expression might be off.

When I used the following source, the links were off:

# Test #

[Link][] leads to
[another][] link.

[link]: http://example.com/link
[another]: http://another.com/another

But I if I alter it just slightly to have the first reference link use the name, both links work.

# Test #

[Link][link] leads to
[another][] link.

[link]: http://example.com/link
[another]: http://another.com/another

Huh? Is it that case-insensitivity breaks all links?

tristanjuricek commented 15 years ago

Added unit test in 0.5.0-SNAPSHOT, will be released.