@@ -59,6 +59,7 @@ import Text.Pandoc.Readers.LaTeX.Math (dollarsMath, inlineEnvironments,
59import Text.Pandoc.Readers.LaTeX.Table (tableEnvironments)
59import Text.Pandoc.Readers.LaTeX.Table (tableEnvironments)
60import Text.Pandoc.Readers.LaTeX.Macro (macroDef)
60import Text.Pandoc.Readers.LaTeX.Macro (macroDef)
61import Text.Pandoc.Readers.LaTeX.Lang (inlineLanguageCommands,
61import Text.Pandoc.Readers.LaTeX.Lang (inlineLanguageCommands,
62 babelLangToBCP47, setDefaultLanguage)
63 babelLangToBCP47, setDefaultLanguage)
63import Text.Pandoc.Readers.LaTeX.SIunitx (siunitxCommands)
64import Text.Pandoc.Readers.LaTeX.SIunitx (siunitxCommands)
64import Text.Pandoc.Readers.LaTeX.Inline (acronymCommands, refCommands,
65import Text.Pandoc.Readers.LaTeX.Inline (acronymCommands, refCommands,
@@ -293,18 +294,6 @@ quoted' f starter ender = do
293lit :: Text -> LP m Inlines
294lit :: Text -> LP m Inlines
294lit = pure . str
295lit = pure . str
296−enquote :: PandocMonad m => Bool -> Maybe Text -> LP m Inlines
297−enquote starred mblang = do
299− let lang = mblang >>= babelLangToBCP47
300− let langspan = case lang of
302− Just l -> spanWith ("",[],[("lang", renderLang l)])
303− quoteContext <- sQuoteContext <$> getState
304− if starred || quoteContext == InDoubleQuote
305− then singleQuoted . langspan <$> withQuoteContext InSingleQuote tok
306− else doubleQuoted . langspan <$> withQuoteContext InDoubleQuote tok
308blockquote :: PandocMonad m => Bool -> Maybe Text -> LP m Blocks
297blockquote :: PandocMonad m => Bool -> Maybe Text -> LP m Blocks
309blockquote cvariant mblang = do
298blockquote cvariant mblang = do
310 citepar <- if cvariant
299 citepar <- if cvariant
@@ -359,6 +348,7 @@ inlineCommands = M.unions
359 , nameCommands
348 , nameCommands
360 , verbCommands
349 , verbCommands
361 , charCommands
350 , charCommands
351+ , enquoteCommands tok
362 , inlineLanguageCommands tok
352 , inlineLanguageCommands tok
363 , biblatexInlineCommands tok
353 , biblatexInlineCommands tok
@@ -418,14 +408,6 @@ inlineCommands = M.unions
418 src <- braced
408 src <- braced
419 mkImage options . unescapeURL . removeDoubleQuotes $
409 mkImage options . unescapeURL . removeDoubleQuotes $
420 untokenize src)
410 untokenize src)
421− , ("enquote*", enquote True Nothing)
422− , ("enquote", enquote False Nothing)
423− -- foreignquote is supposed to use native quote marks
424− , ("foreignquote*", braced >>= enquote True . Just . untokenize)
425− , ("foreignquote", braced >>= enquote False . Just . untokenize)
426− -- hypehnquote uses regular quotes
427− , ("hyphenquote*", braced >>= enquote True . Just . untokenize)
428− , ("hyphenquote", braced >>= enquote False . Just . untokenize)
429 , ("hyperlink", hyperlink)
411 , ("hyperlink", hyperlink)
430 , ("hypertarget", hypertargetInline)
412 , ("hypertarget", hypertargetInline)
431 -- hyphenat
413 -- hyphenat