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:
parent
48f809384a
commit
9e3f5a5147
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ orgPath :: String -> String
|
||||||
orgPath src =
|
orgPath src =
|
||||||
case src of
|
case src of
|
||||||
[] -> mempty -- wiki link
|
[] -> mempty -- wiki link
|
||||||
('#':xs) -> xs -- internal link
|
('#':_) -> src -- internal link
|
||||||
_ | isUrl src -> src
|
_ | isUrl src -> src
|
||||||
_ | isFilePath src -> src
|
_ | isFilePath src -> src
|
||||||
_ -> "file:" <> src
|
_ -> "file:" <> src
|
||||||
|
|
Loading…
Add table
Reference in a new issue