Do not strip # from Org anchor links

Links with # are perfectly valid according to http://orgmode.org/manual/Internal-links.html#Internal-links
This commit is contained in:
Alexander Krotov 2017-02-12 17:09:44 +03:00
parent 48f809384a
commit 9e3f5a5147

View file

@ -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