patched https://github.com/niklasfasching/go-org for orgwiki
Headlines are nested if their level is higher (more stars) than the current headline. We're abusing the token.lvl field for this - as headlines can never be indented we know the indentation must be 0 so we can cache the lvl (count of stars) of the headline in that field. This doesn't change anything right now so I'll postpone adding tests and stuff until there are actual use cases for the AST and stuff. |
||
---|---|---|
etc | ||
org | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.org |
go-org https://travis-ci.org/niklasfasching/go-org.svg?branch=master
A basic Org mode parser in go.
Take a look at github pages for some examples and an online org -> html demo (requires wasm support).
not yet implemented
deadlines and scheduling
latex fragments
see https://orgmode.org/manual/LaTeX-fragments.html
- mathjax for html_writer ?
more types of links
see https://orgmode.org/manual/External-links.html & https://orgmode.org/manual/Internal-links.html
- radio target <<<MyTarget>>>
- link target: <<go-org>>
- link: /OrgWiki/go-org-orgwiki/src/commit/2cf09dcf03989ac1e981314c2a0ac14829870a3f/go-org
- link to headline
- links with image as description
- MyTarget <- this will automatically become a link - not sure i want this…
resources
-
test files
- https://orgmode.org/manual/
- https://orgmode.org/worg/dev/org-syntax.html
-
https://code.orgmode.org/bzg/org-mode/src/master/lisp/org.el
- https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-element.el
- mostly those & ox-html.el, but yeah, all of https://code.orgmode.org/bzg/org-mode/src/master/lisp/
- existing Org mode implementations: org, org-ruby, goorgeous, pandoc