org_parser 1.0.0-nullsafety.0 copy "org_parser: ^1.0.0-nullsafety.0" to clipboard
org_parser: ^1.0.0-nullsafety.0 copied to clipboard

outdated

A pure-Dart parser for Emacs org-mode (https://orgmode.org) markup

example/example.dart

import 'package:org_parser/org_parser.dart';

void main() {
  const docString = '''* TODO [#A] foo bar
baz buzz''';
  final doc = OrgDocument.parse(docString);
  final section = doc.children[0];
  print(section.headline.keyword);
  final title = section.headline.title!.children[0] as OrgPlainText;
  print(title.content);
  final paragraph = section.content!.children[0] as OrgParagraph;
  final body = paragraph.body.children[0] as OrgPlainText;
  print(body.content);
}
4
likes
0
pub points
37%
popularity

Publisher

verified publishermadlon-kay.com

A pure-Dart parser for Emacs org-mode (https://orgmode.org) markup

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

petitparser

More

Packages that depend on org_parser