From 2910f9f3f856552b33ada842e3eb485717db100a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 26 Oct 2021 21:48:56 -0700 Subject: Fix a copy/paste bug in Lua marshalling code. This led changes in link properties in Lua filters to change the links into images! Closes #7639. --- src/Text/Pandoc/Lua/Marshaling/AST.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Lua/Marshaling/AST.hs b/src/Text/Pandoc/Lua/Marshaling/AST.hs index d723fcb4c..6bb4fd4e0 100644 --- a/src/Text/Pandoc/Lua/Marshaling/AST.hs +++ b/src/Text/Pandoc/Lua/Marshaling/AST.hs @@ -732,7 +732,7 @@ typeInline = deftype "Inline" Link _ _ (tgt, _) -> Actual tgt _ -> Absent) (peekText, \case - Link attr capt (_, title) -> Actual . Image attr capt . (,title) + Link attr capt (_, title) -> Actual . Link attr capt . (,title) _ -> const Absent) , possibleProperty "title" "title text" (pushText, getInlineTitle) -- cgit v1.2.3