From 39eb8cbad82c34178f1bfaef7e993b5d5e44defa Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Fri, 5 Jan 2007 00:55:38 +0000 Subject: Changed Markdown writer so that it does not use the single-bracket style of implicit reference link. It now uses [this style][], not [this style]. Reason: only newer, beta versions of Markdown allow the single-bracket style. git-svn-id: https://pandoc.googlecode.com/svn/trunk@419 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/Text/Pandoc/Writers/Markdown.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers/Markdown.hs') diff --git a/src/Text/Pandoc/Writers/Markdown.hs b/src/Text/Pandoc/Writers/Markdown.hs index c1d50c2ef..d5ec137cd 100644 --- a/src/Text/Pandoc/Writers/Markdown.hs +++ b/src/Text/Pandoc/Writers/Markdown.hs @@ -176,7 +176,7 @@ inlineToMarkdown (Link txt (Src src tit)) = inlineToMarkdown (Link txt (Ref ref)) = let first = char '[' <> inlineListToMarkdown txt <> char ']' second = if (txt == ref) - then empty + then text "[]" else char '[' <> inlineListToMarkdown ref <> char ']' in first <> second inlineToMarkdown (Image alternate (Src source tit)) = -- cgit v1.2.3