Markdown reader: Allow spaces around borders in pipe tables.
Closes #772.
This commit is contained in:
parent
f449dfd55d
commit
1aff783095
1 changed files with 3 additions and 1 deletions
|
@ -1184,10 +1184,12 @@ pipeTableRow = do
|
|||
| otherwise -> B.plain $ ils') cells'
|
||||
|
||||
pipeTableHeaderPart :: Parser [Char] st Alignment
|
||||
pipeTableHeaderPart = do
|
||||
pipeTableHeaderPart = try $ do
|
||||
skipMany spaceChar
|
||||
left <- optionMaybe (char ':')
|
||||
many1 (char '-')
|
||||
right <- optionMaybe (char ':')
|
||||
skipMany spaceChar
|
||||
return $
|
||||
case (left,right) of
|
||||
(Nothing,Nothing) -> AlignDefault
|
||||
|
|
Loading…
Add table
Reference in a new issue