git.iko.soy/typeable/pandoc
on master help sign in
ConTeXt: use `\goto` for internal links.
commite0a88df686ee120075c88ffe6604a0e862040f9f authorJohn MacFarlane <jgm@berkeley.edu> dateWed 1 Jul 2015, 12:11 (11 years ago) parent668833d
1 file changed+2−7
src/Text/Pandoc/Writers/ConTeXt.hs+2−7
src/Text/Pandoc/Writers/ConTeXt.hs+2−7
@@ -302,13 +302,8 @@ inlineToConTeXt (Link txt (('#' : ref), _)) = do
302302 opts <- gets stOptions
303303 contents <- inlineListToConTeXt txt
304304 let ref' = toLabel $ stringToConTeXt opts ref
305− return $ text "\\in"
306− <> braces (if writerNumberSections opts
307− then contents <+> text "(\\S"
308− else contents) -- prefix
309− <> braces (if writerNumberSections opts
310− then text ")"
311− else empty) -- suffix
305+ return $ text "\\goto"
306+ <> braces contents
312307 <> brackets (text ref')
313308
314309inlineToConTeXt (Link txt (src, _)) = do