khajavi / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Pandoc uses case-sensitive reference style links for markdown #272

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Consider the following markdown -
-----------
This uses the [Markdown] "auto reference link" syntax.

[markdown]: http://daringfireball.net/projects/markdown/syntax#link
-----------

Pandoc doesn't process that correctly because it treats the id in a 
case-sensitive way. The markdown spec on Gruber's page says link ids are 
case-insensitive. Case-insensitivity is a useful feature for auto-ids where you 
may want to capitalize a word at the beginning of a sentence, but not in other 
places, though they point to the same URL.

Note that Gruber's page doesn't say "[Markdown]" is an auto-id-link. He only 
says "[Markdown][]" is one. It is nice that pandoc supports "[Markdown]" style 
auto-id-link, but the case sensitivity problem exists when using links of both 
types.

* Bug found in pandoc v1.6 on MacOS 10.6.5

Original issue reported on code.google.com by srikuma...@gmail.com on 6 Dec 2010 at 1:44

GoogleCodeExporter commented 9 years ago
Thanks. It's a regression.  Pandoc used to ignore case.  I changed the way the 
key tables worked, and it became case-sensitive again without me noticing.  
(Need a test case for this!)

Original comment by fiddloso...@gmail.com on 6 Dec 2010 at 3:00

GoogleCodeExporter commented 9 years ago
Fixed in 5a4609584c84114e8d148f558bed86353c7f0146, and test cases added.
Thanks for calling this to our attention!

Original comment by fiddloso...@gmail.com on 6 Dec 2010 at 3:36