Find a file
2018-12-02 16:49:44 +01:00
cmd/org Add basic html rendering 2018-12-02 16:49:44 +01:00
etc/githooks Setup basic development environment: make, git hooks & CI 2018-12-02 16:49:44 +01:00
testdata Add basic html rendering 2018-12-02 16:49:44 +01:00
.travis.yml Setup basic development environment: make, git hooks & CI 2018-12-02 16:49:44 +01:00
block.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
document.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
footnote.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
headline.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
html.go Add basic html rendering 2018-12-02 16:49:44 +01:00
html_test.go Add basic html rendering 2018-12-02 16:49:44 +01:00
inline.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
keyword.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
list.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
Makefile Add basic html rendering 2018-12-02 16:49:44 +01:00
org.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
org_test.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
paragraph.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00
README.org Add basic html rendering 2018-12-02 16:49:44 +01:00
table.go Add basic parser and org -> AST -> org rendering 2018-12-02 16:49:44 +01:00

A basic org-mode parser in go

motivation

  • have a org-mode AST to play around with building an org-mode language server
  • hopefully add reasonable org-mode support to hugo - sadly goorgeous is broken & abandoned

next

later

  • affiliated keywords see org-element.el - org-element-affiliated-keywords
  • keywords: support both multi (e.g. LINK, TODO) & normal (e.g. AUTHOR, TITLE) keywords
  • links based on #+LINK
  • includes https://orgmode.org/manual/Include-files.html could be used to have a single org file (ignored via hugo ignoreFiles) and then for each post a file including the relevant headline
  • tables colgroups https://orgmode.org/worg/org-tutorials/tables.html
  • org-entities replacement: see org-entities-help