diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2016-05-29 14:39:37 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2016-05-29 21:08:31 +0200 |
commit | bc82123122d0bcd99f1cda07e87eca0b88fa8bbb (patch) | |
tree | 2c553c991d538237a8a51356e3c44e760c2d2f31 /src/Text/Pandoc/Readers/Org/Inlines.hs | |
parent | f54873d5ea757787ec816336c61c24a813799554 (diff) |
Org reader: rename `parseInlines` to `inlines`
Having a function starting with `parse` in a parsing library is overly
redundant. Let's use a nicer, shorter name more in line with the rest
of the library.
Diffstat (limited to 'src/Text/Pandoc/Readers/Org/Inlines.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/Org/Inlines.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Org/Inlines.hs b/src/Text/Pandoc/Readers/Org/Inlines.hs index 0c3840979..a122c334a 100644 --- a/src/Text/Pandoc/Readers/Org/Inlines.hs +++ b/src/Text/Pandoc/Readers/Org/Inlines.hs @@ -28,8 +28,8 @@ Parsers for Org-mode inline elements. -} module Text.Pandoc.Readers.Org.Inlines ( inline + , inlines , addToNotesTable - , parseInlines , isImageFilename , linkTarget ) where @@ -145,8 +145,9 @@ inline = ] <* (guard =<< newlinesCountWithinLimits) <?> "inline" -parseInlines :: OrgParser (F Inlines) -parseInlines = trimInlinesF . mconcat <$> many1 inline +-- | Read the rest of the input as inlines. +inlines :: OrgParser (F Inlines) +inlines = trimInlinesF . mconcat <$> many1 inline -- treat these as potentially non-text when parsing inline: specialChars :: [Char] |