An Org Mode parser for Dart
https://github.com/amake/org_parser.git
An Org Mode parser for Dart.
For displaying Org Mode documents in Flutter applications, see orgflutter. For an example application that displays Org Mode documents with orgparser and orgflutter, see Orgro.
This package allows you to parse raw Org Mode documents into a structured in-memory representation.
import 'package:org_parser/org_parser.dart';
final doc = OrgDocument.parse('''* TODO [#A] foo bar
baz buzz''');
print(doc.children[0].headline.keyword); // TODO
See the example for more.
* TODO [#A] foo bar
#+BEGIN_SRC
foo bar
#+END_SRC
foo src_sh{echo "bar"} baz
#+name: foo
: foo bar
: baz buzz
| foo | bar |
|-----+-----|
| biz | baz |
- foo
- [X] bar
1. baz
2. buzz
- bazinga :: bazonga
:PROPERTIES:
foo bar
:END:
Foo bar[fn:1] biz buzz
[fn:1] Bazinga
[[http://example.com][example]]
[[http://example.com][example *with* emphasis]]
http://example.com
*bold* /italic/ _underline_ +strikethrough+ ~code~ =verbatim=
[2020-05-05 Tue]
<2020-05-05 Tue 10:00>
[2020-05-05 Tue]--[2020-05-05 Tue]
{{{kbd(C-c C-c)}}}
Then we add $a^2$ to \(b^2\)
\begin{equation}
\nabla \times \mathbf{B} = \frac{1}{c}\left( 4\pi\mathbf{J} + \frac{\partial \mathbf{E}}{\partial t}\right)
\end{equation}
a\leftrightarrow{}b conversion
[cite:@key]
-----
<<<foo>>>
<<bar>>