git.iko.soy/typeable/pandoc
on master help sign in
LaTeX writer: fixed detection of otherlangs.

We weren't recursing into inline contexts. Closes #3770.

commitcd690d04015431e89feefa7f68e9609efab1f16b authorJohn MacFarlane <jgm@berkeley.edu> dateWed 28 Jun 2017, 14:20 (9 years ago) parentf5f8485
1 file changed+3−3
src/Text/Pandoc/Writers/LaTeX.hs+3−3
src/Text/Pandoc/Writers/LaTeX.hs+3−3
@@ -1245,9 +1245,9 @@ mbBraced x = if not (all isAlphaNum x)
12451245-- Extract a key from divs and spans
12461246extract :: String -> Block -> [String]
12471247extract key (Div attr _) = lookKey key attr
1248−extract key (Plain ils) = concatMap (extractInline key) ils
1249−extract key (Para ils) = concatMap (extractInline key) ils
1250−extract key (Header _ _ ils) = concatMap (extractInline key) ils
1248+extract key (Plain ils) = query (extractInline key) ils
1249+extract key (Para ils) = query (extractInline key) ils
1250+extract key (Header _ _ ils) = query (extractInline key) ils
12511251extract _ _ = []
12521252
12531253-- Extract a key from spans