org_parser library

Classes

DecryptedContentSerializer
OrgBlock
#+begin_quote foo #+end_quote
A bracketed link, like
OrgCitation
A citation like cite:@key
OrgComment
OrgContent
A generic node that contains children
OrgContentGrammarDefinition
Content grammar definition
OrgContentParserDefinition
Content-level parser definition
OrgDateRangeTimestamp
OrgDecryptedContent
OrgDiaryTimestamp
OrgDocument
The top-level node representing a full Org document
OrgDrawer
A drawer, like
OrgEntity
An entity, like \Omega
A link to a file, like
OrgFileLinkGrammarDefinition
Grammar rules for file links, which are basically a mini-format of their own
OrgFileLinkParserDefinition
File link parser definition
OrgFixedWidthArea
A fixed-width area, like
OrgFootnote
A footnote, like
OrgFootnoteReference
A footnote reference, like [fn:1]
OrgGrammarDefinition
Top-level grammar definition
OrgHeadline
An Org headline, like
OrgHorizontalRule
A horizontal rule, like
OrgKeyword
A planning keyword, like SCHEDULED: or DEADLINE:
OrgLatexBlock
A LaTeX block, like
OrgLatexInline
An inline LaTeX snippet, like $E=mc^2$
OrgLeafNode
A link, like
OrgList
A list, like
OrgListItem
OrgListOrderedItem
An ordered list item, like
OrgListUnorderedItem
An unordered list item, like
OrgLocalVariables
OrgMacroReference
A macro reference, like
OrgMarkup
Emphasis markup, like
OrgMeta
A "meta" line, like
OrgNode
The base type of all Org AST objects
OrgParagraph
OrgParentNode
OrgParserDefinition
Top-level parser definitions
OrgPgpBlock
OrgPlainText
Plain text that has no markup
OrgPlanningLine
A planning line, like
OrgProperty
A property in a drawer, like
OrgQueryAndMatcher
OrgQueryGrammarDefinition
Grammar rules for the section query language described at https://orgmode.org/manual/Matching-tags-and-properties.html
OrgQueryMatcher
A matcher for displaying the document as a "sparse tree" as in org-match-sparse-tree
OrgQueryNotMatcher
OrgQueryOrMatcher
OrgQueryParserDefinition
OrgQueryPropertyMatcher
OrgQueryTagMatcher
OrgSection
An Org section. May have nested sections, like
OrgSerializer
A class for serializing Org AST objects to Org Mode markup. Subclass and supply to OrgNode.toMarkup to customize serialization.
OrgSimpleTimestamp
A timestamp, like [2020-05-05 Tue]
OrgSrcBlock
A source block, like
OrgStatisticsCookie
OrgStatisticsFractionCookie
OrgStatisticsPercentageCookie
OrgSubscript
OrgSubSuperscript
OrgSuperscript
OrgTable
A table, like
OrgTableCell
OrgTableCellRow
OrgTableDividerRow
OrgTableRow
OrgTimeRangeTimestamp
OrgTodoStates
A class representing the TODO states a la org-todo-keywords. Extract such states embedded in a document using extractTodoSettings.
OrgTree
A node potentially containing OrgSections
TodoGrammar
TodoParser

Enums

OrgStyle
Supported styles for OrgMarkup nodes

Extensions

ZipperExt on ZipperLocation<ZR, ZI, ZS>

Properties

defaultTodoStates OrgTodoStates
final
org → Parser
The top-level Org parser
final
File link parser
final
orgQuery → Parser
final
orgTodo → Parser
final

Functions

extractTodoSettings(OrgTree tree) List<OrgTodoStates>
Extracts the TODO settings from #+TODO: and equivalent meta keywords in the given tree.
isOrgCustomIdUrl(String url) bool
Identify URLs that point to a custom ID (starting with '#').
isOrgIdUrl(String url) bool
Identify URLs that point to IDs (starting with 'id:').
isOrgLocalSectionUrl(String url) bool
Identify URLs that point to a section within the current document (starting with '*')
parseOrgCustomIdUrl(String url) String
Return the CUSTOM_ID of the section pointed to by the URL. The URL must be one for which isOrgCustomIdUrl returns true.
parseOrgIdUrl(String url) String
Return the ID of the section pointed to by the URL. The URL must be one for which isOrgCustomIdUrl returns true.
parseOrgLocalSectionUrl(String url) String
Return the title of the section pointed to by the URL. The URL must be one for which isOrgLocalSectionUrl returns true.

Typedefs

OrgDate = ({String day, String dayName, String month, String year})
OrgPath = List<OrgNode>
OrgTime = ({String hour, String minute})
OrgZipper = ZipperLocation<OrgNode, OrgLeafNode, OrgParentNode>