@@ -1073,7 +1073,10 @@ accent :: PandocMonad m => Char -> (Char -> String) -> LP m Inlines
10731073accent c f = try $ do
10741074 ils <- tok
10751075 case toList ils of
1076− (Str (x:xs) : ys) -> return $ fromList (Str (f x ++ xs) : ys)
1076+ (Str (x:xs) : ys) -> return $ fromList $
1077+ case f x of
1078+ [z] | z == x -> Str ([z,c] ++ xs) : ys -- combining accent
1079+ zs -> Str (zs ++ xs) : ys
10771080 [Space] -> return $ str [c]
10781081 [] -> return $ str [c]
10791082 _ -> return ils