diff options
author | defanor <defanor@uberspace.net> | 2017-12-25 19:20:40 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2017-12-25 19:20:40 +0300 |
commit | b627b6b13cf860df11efc8d1b0df75ed129f361a (patch) | |
tree | 59478e8c670bdb82d514addb7f0ec3206b5ab1bc /Pancake | |
parent | 340c52572212a1918a8ac1e5faac8cb5a5cc079a (diff) |
Provide absolute URIs for pancake.el
Diffstat (limited to 'Pancake')
-rw-r--r-- | Pancake/Printing.hs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Pancake/Printing.hs b/Pancake/Printing.hs index 5ef3a81..6778ac8 100644 --- a/Pancake/Printing.hs +++ b/Pancake/Printing.hs @@ -110,10 +110,12 @@ showSexps uri ro = , showDenotation d , showSexp s] showDenotation :: Denotation -> String - showDenotation (Link u) = list ["link", ".", encodeSexpStr $ show u] - showDenotation (Image u) = list ["image", ".", encodeSexpStr $ show u] - showDenotation (Math m) = list ["math", ".", encodeSexpStr m] - showDenotation (Heading l) = list ["heading", ".", show l] + showDenotation (Link u) = list [ "link", encodeSexpStr $ show u + , encodeSexpStr $ show $ relativeTo u uri] + showDenotation (Image u) = list [ "image", encodeSexpStr $ show u + , encodeSexpStr $ show $ relativeTo u uri] + showDenotation (Math m) = list ["math", encodeSexpStr m] + showDenotation (Heading l) = list ["heading", show l] -- | Merge elements with the same styling. mergeStyled :: [Styled] -> [Styled] |