orgmode-parse
orgmode-parse copied to clipboard
Attoparsec parser combinators for parsing org-mode structured text!
this is a quick hack to get orgmode-parse to build with ghc 9.6.3. If this is something you want to merge, I can improve the PR!
I'll need to double-check, but I have a strong suspicion that ``` * My header Text1 *TODO* Text2 Text3 ``` will be parsed as two headers, `TODO* Text2` being the...
Parsing this text: ``` * foo: bar: baz ``` results in: ``` Headline {depth = Depth 1, title = "foo", tags = [" bar"], ... ``` but should result in:...
Discovered while testing the HyperLink parser. The parser will incorrectly parse the following: ``` /[[https://orgmode.org/manual/Link-format.html][The Org Manual: Link format]]/ ``` ... as: ``` Right [Paragraph [Italic [Plain "[[https:"],Italic [Plain "orgmode.org"],Plain...
Thanks for making this library :+1: I've started writing a basic printer here https://github.com/chrissound/orgmode-parse-print. If it's useful to this project / anyone else, feel free to grab anything from there...
The current implementation of drawer parsing is deficient in the fact that it cannot parse LOGBOOK and PROPERTIES out-of-order. A better way to handle the drawers and special drawers is...
The current parser code can only handle timestamps appearing in a headline _before_ title text and directly _after_ a headline in its body. The org-mode documentation states a timestamp _may_...
The record field `sectionParagraph` in the `Section` data type should be renamed for clarity to something like `sectionText`.
The data type `BracketedDateTime` is almost identical to `DateTime`. These two data types and their associated parsers can be unified.