Merge pull request #596 from dlax/rst-fieldlists
improvements to rst reader for field lists
This commit is contained in:
commit
9f89269941
2 changed files with 4 additions and 3 deletions
|
@ -151,8 +151,8 @@ rawFieldListItem :: String -> Parser [Char] ParserState (String, String)
|
|||
rawFieldListItem indent = try $ do
|
||||
string indent
|
||||
char ':'
|
||||
name <- many1 $ alphaNum <|> spaceChar
|
||||
string ": "
|
||||
name <- many1 $ noneOf ":"
|
||||
char ':'
|
||||
skipSpaces
|
||||
first <- manyTill anyChar newline
|
||||
rest <- option "" $ try $ do lookAhead (string indent >> spaceChar)
|
||||
|
|
|
@ -279,7 +279,8 @@ Field Lists
|
|||
:address: 61 Main St.
|
||||
:city: *Nowhere*, MA,
|
||||
USA
|
||||
:phone: 123-4567
|
||||
:phone:
|
||||
123-4567
|
||||
|
||||
HTML Blocks
|
||||
===========
|
||||
|
|
Loading…
Add table
Reference in a new issue