git.iko.soy/typeable/pandoc
on master help sign in
Do not strip # from Org anchor links

Links with # are perfectly valid according to http://orgmode.org/manual/Internal-links.html#Internal-links

commit9e3f5a5147c2cbc7d230c6fe7d8eaf8244b70c24 authorAlexander Krotov <ilabdsf@gmail.com> dateSun 12 Feb 2017, 17:09 (10 years ago) parent48f8093
1 file changed+1−1
src/Text/Pandoc/Writers/Org.hs+1−1
src/Text/Pandoc/Writers/Org.hs+1−1
@@ -374,7 +374,7 @@ orgPath :: String -> String
374374orgPath src =
375375 case src of
376376 [] -> mempty -- wiki link
377− ('#':xs) -> xs -- internal link
377+ ('#':_) -> src -- internal link
378378 _ | isUrl src -> src
379379 _ | isFilePath src -> src
380380 _ -> "file:" <> src