diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-12-05 19:27:00 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-12-05 19:27:00 -0800 |
commit | 5a4609584c84114e8d148f558bed86353c7f0146 (patch) | |
tree | c52e39311a6af3dbd8fe0c921ab08ca8ba176460 /src/Text/Pandoc.hs | |
parent | 37dc5d8c5d657d26a358aa4d5f6c14b25ae6cc4b (diff) | |
download | pandoc-5a4609584c84114e8d148f558bed86353c7f0146.tar.gz |
Fix regression: markdown references should be case-insensitive.
This broke when we added the Key type. We had assumed that
the custom case-insensitive Ord instance would ensure case-insensitive
matching, but that is not how Data.Map works.
* Added a test case for case-insensitivity in markdown-reader-more
* Removed old refsMatch from Text.Pandoc.Parsing module;
* hid the 'Key' constructor;
* dropped the custom Ord and Eq instances, deriving instead;
* added fromKey and toKey to convert between Keys and Inline lists;
* toKey ensures that keys are case-insensitive, since this is the
only way the API provides to construct a Key.
Resolves Issue #272.
Diffstat (limited to 'src/Text/Pandoc.hs')
0 files changed, 0 insertions, 0 deletions