From 9e3f5a5147c2cbc7d230c6fe7d8eaf8244b70c24 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 12 Feb 2017 17:09:44 +0300 Subject: Do not strip # from Org anchor links Links with # are perfectly valid according to http://orgmode.org/manual/Internal-links.html#Internal-links --- src/Text/Pandoc/Writers/Org.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers/Org.hs') diff --git a/src/Text/Pandoc/Writers/Org.hs b/src/Text/Pandoc/Writers/Org.hs index fd4c16c64..55d3fe656 100644 --- a/src/Text/Pandoc/Writers/Org.hs +++ b/src/Text/Pandoc/Writers/Org.hs @@ -374,7 +374,7 @@ orgPath :: String -> String orgPath src = case src of [] -> mempty -- wiki link - ('#':xs) -> xs -- internal link + ('#':_) -> src -- internal link _ | isUrl src -> src _ | isFilePath src -> src _ -> "file:" <> src -- cgit v1.2.3