@@ -1341,10 +1341,10 @@ pipeTable :: MarkdownParser ([Alignment], [Double], F [Blocks], F [[Blocks]])
13411341pipeTable = try $ do
13421342 nonindentSpaces
13431343 lookAhead nonspaceChar
1344− ((heads, rawHead),(aligns, seplengths)) <- (,) <$>
1345− withRaw pipeTableRow <*> pipeBreak
1346− (lines', rawRows) <- unzip <$> many (withRaw pipeTableRow)
1347− let maxlength = maximum $ map length (rawHead : rawRows)
1344+ (heads,(aligns, seplengths)) <- (,) <$> pipeTableRow <*> pipeBreak
1345+ lines' <- many pipeTableRow
1346+ let maxlength = maximum $
1347+ map (\x -> length . stringify $ runF x def) (heads : lines')
13481348 numColumns <- getOption readerColumns
13491349 let widths = if maxlength > numColumns
13501350 then map (\len ->