org_parser 6.4.0 org_parser: ^6.4.0 copied to clipboard
A pure-Dart parser for Emacs Org Mode (https://orgmode.org) markup
[6.4.0] #
- Support entities in subscripts and superscripts
[6.3.0] #
- Support non-ASCII headline tags
[6.2.2] #
- Fix lower bound of more dependency
[6.2.1] #
- Restore compatibility with Flutter 3.24
[6.2.0] #
- Parse subscripts and superscripts
[6.1.1] #
- Allow
OrgMeta
nodes to be recognized inside text runs
[6.1.0] #
- Parse Org Cite citations
[6.0.0] #
- Add
orgTodo
parser andOrgTodoStates
model OrgHeadline.keyword.done
now indicates whether a keyword is considered "in-progress" or "done"- Add
interpretEmbeddedSettings
arg toOrgDocument.parse
. Passtrue
to allow detecting TODO keywords from#+TODO:
(and related) meta lines. OrgParserDefinition
andOrgGrammarDefinition
constructors now take a list ofOrgTodoStates
rather than string lists
[5.7.0] #
- Introduce
OrgSerializer
: supply a subclass toOrgNode.toMarkup
to customize how a tree is serialized. - Add
OrgSection.tags
- Add optional
where
predicate toOrgTree.findContainingTree
[5.6.1] #
- Bug fixes
[5.6.0] #
- Add parser, AST for the Org query language described in the Matching tags and properties section of the Org manual
- Make
OrgTree.getProperties
public - Reorganize code
[5.5.0] #
- Adjust
OrgDecryptedContent
to allow serializing to encrypted form- Supply an appropriate
DecryptedContentSerializer
- See
OrgDecryptedContent.toCleartextMarkup
to obtain the unencrypted form
- Supply an appropriate
[5.4.0] #
- Parse PGP encrypted blocks, add representation for decrypted content
- Parse comment lines
- Fix some editing bugs
- Remove
OrgTree.level
(OrgSection.level
remains)
[5.3.0] #
- Support the
attachment:
protocol inOrgFileLink
ids
,customIds
is now onOrgTree
rather thanOrgSection
- Added
OrgTree.dirs
to get the:DIR:
property values of the tree - Added
OrgTree.attachDir
to get the attachment directory for the tree - The
OrgPath
returned byOrgNode.find
now includes the starting node as the first item - Added
OrgFileLink.copyWith
[5.2.0] #
- Parse Emacs local variables
lists
to
OrgLocalVariables
AST node. The content, stripped of prefixes and suffixes, is available fromOrgLocalVariables.contentString
.
[5.1.0] #
- Add
OrgNode.find
method for searching for a particular node and its "path" in the document - Change
OrgFootnoteReference
properties - Add
OrgFootnoteReference.isDefinition
to indicate whether reference is part of a footnote definition or merely a reference
[5.0.0] #
- Full support for dumping AST back to Org markup:
OrgNode.toMarkup
- Errors in round-tripping are now considered bugs
- Various changes in AST class properties to better support dumping to markup
- While the AST remains immutable, editing operations are now possible via
zipper; see
OrgTree.edit
andOrgTree.editNode
, as well as example.dart - Simple editing convenience methods added:
OrgListItem.toggleCheckbox
OrgHeadline.cycleTodo
[4.1.1] #
- Fix support for inline markup in header titles
[4.1.0] #
- Support "greater" blocks with arbitrary names such as
#+begin_foo
- Add initial support for dumping AST back to Org markup:
OrgNode.toMarkup
[4.0.0] #
- Update to petitparser 6.0.1
- Require Dart 3.0 or higher
[3.1.0] #
- Update to petitparser 5.4.0
[3.0.0] #
- Require petitparser 5.1.0 or higher
- Require Dart 2.18 or higher
[2.2.1] #
- Add dartdoc comments to AST, grammar, and parser objects
- Fix incorrect parsing of star-only headlines (#5)
[2.2.0] #
- Add utilities for recognizing, parsing
id:
and#custom-id
URLsisOrgIdUrl
&parseOrgIdUrl
isOrgCustomIdUrl
&parseOrgCustomIdUrl
- Add
OrgDrawer.properties
for obtaining drawer properties - Add methods for getting the
ID
andCUSTOM_ID
properties of a sectionOrgSection.ids
OrgSection.customIds
- Add
OrgTree.visitSections
for efficiently walking just sections OrgFileLink
now correctly recognizes links with empty file parts likefile:::*Section name
, which point to local sections; seeOrgFileLink.isLocal
.
[2.1.1] #
- Require petitparser 4.1.0 or higher
[2.1.0] #
- Relicense under the MIT License
- "Plain" links of all built-in types are now recognized (not just http(s): and mailto:)
- Added parser, AST for file links; see
OrgFileLink
class,orgFileLink
variable - Removed the following classes; use noted replacements
OrgGrammar
→OrgGrammarDefinition().build()
OrgContentGrammar
→OrgContentGrammarDefinition().build()
OrgParser
→org
variableOrgContentParser
→OrgContentParserDefinition().build()
[2.0.0] #
- Change class hierarchy of AST classes
- All classes now inherit from
OrgNode
- All
OrgNode
s have achildren
property OrgTree.children
(sections only) is nowOrgTree.sections
- All classes now inherit from
- Easily walk an AST with
OrgNode.visit
[1.0.1] #
- Fix nullability errors in headline, src block
[1.0.0] #
- Migrate to non-nullable by default
[0.5.0] - 2021-12-16 #
- Fix parsing of non-property drawer content
- Parse planning/clock lines as separate elements (#2)
[0.4.1] - 2020-08-29 #
- Fix inline style markup (
*foo*
,+bar+
, etc.) to span at most one line break
[0.4.0] - 2020-07-21 #
- Parse entities (
\frac12
→ ½, etc.)
[0.3.2] - 2020-07-18 #
- More accurate tag handling in section headlines
[0.3.1] - 2020-07-18 #
- Fix section headline parsing error
[0.2.0] - 2020-06-20 #
- Parse src blocks (
#+begin_src
) asOrgSrcBlock
; language of block is exposed asOrgSrcBlock.language
[0.1.1+1] - 2020-05-21 #
- Add example
[0.1.1] - 2020-05-06 #
- Added
OrgTable.columnIsNumeric
API for determining if a table column is primarily comprised of numbers
[0.1.0] - 2020-05-05 #
- Initial release