aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Writers/ConTeXt.hs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/Text/Pandoc/Writers/ConTeXt.hs b/src/Text/Pandoc/Writers/ConTeXt.hs
index 275fd26e2..1f8bbcdba 100644
--- a/src/Text/Pandoc/Writers/ConTeXt.hs
+++ b/src/Text/Pandoc/Writers/ConTeXt.hs
@@ -302,13 +302,8 @@ inlineToConTeXt (Link txt (('#' : ref), _)) = do
opts <- gets stOptions
contents <- inlineListToConTeXt txt
let ref' = toLabel $ stringToConTeXt opts ref
- return $ text "\\in"
- <> braces (if writerNumberSections opts
- then contents <+> text "(\\S"
- else contents) -- prefix
- <> braces (if writerNumberSections opts
- then text ")"
- else empty) -- suffix
+ return $ text "\\goto"
+ <> braces contents
<> brackets (text ref')
inlineToConTeXt (Link txt (src, _)) = do