@@ -308,7 +308,15 @@ pSelfClosing f g = do
308 return open
308 return open
310pQ :: TagParser [Inline]
310pQ :: TagParser [Inline]
312+ quoteContext <- stateQuoteContext `fmap` getState
313+ let quoteType = case quoteContext of
314+ InDoubleQuote -> SingleQuote
316+ let innerQuoteContext = if quoteType == SingleQuote
311−pQ = pInlinesInTags "q" (Quoted DoubleQuote)
319+ withQuoteContext innerQuoteContext $ pInlinesInTags "q" (Quoted quoteType)
313pEmph :: TagParser [Inline]
321pEmph :: TagParser [Inline]
314pEmph = pInlinesInTags "em" Emph <|> pInlinesInTags "i" Emph
322pEmph = pInlinesInTags "em" Emph <|> pInlinesInTags "i" Emph