From 306c4745621a4748fba70c8b029c0cf9d4d7a017 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sun, 4 Jul 2010 23:26:04 -0700
Subject: [PATCH] Don't allow colon in autogenerated HTML identifiers.

They have a special meaning in XML (e.g. in EPUB).
---
 src/Text/Pandoc/Shared.hs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index da6c1a3af..94be91b2d 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -364,11 +364,11 @@ data Element = Blk Block
 
 -- | Convert Pandoc inline list to plain text identifier.  HTML
 -- identifiers must start with a letter, and may contain only
--- letters, digits, and the characters _-:.
+-- letters, digits, and the characters _-.
 inlineListToIdentifier :: [Inline] -> String
 inlineListToIdentifier =
   dropWhile (not . isAlpha) . intercalate "-" . words . map toLower .
-  filter (\c -> isLetter c || isDigit c || c `elem` "_-:. ") .
+  filter (\c -> isLetter c || isDigit c || c `elem` "_-. ") .
   concatMap extractText
     where extractText x = case x of
               Str s           -> s