Find a file
Niklas Fasching ec895cbe83 Fix headline tags, table pretty printing and multiline links
- we can't just look at the len of the string (~ #bytes) - that breaks down for
  tables containing characters consisting of multiple bytes. This handles
  more (still not all) cases and is good enough for now
- add _ to allowed tag chars - also require space between headline and tags
- links (link itself, not the description) spanning multiple lines are not
  supported - otherwise we would have to take care of splitting link and adding
  indentation for org pretty printing - and that sounds like such an edge case
  that it seems cleaner to forbid them
2018-12-19 13:15:31 +01:00
etc Improve tests: Add pretty_org fixtures to allow testing pretty printing 2018-12-18 23:54:04 +01:00
org Fix headline tags, table pretty printing and multiline links 2018-12-19 13:15:31 +01:00
.gitignore Set up github pages 2018-12-11 15:42:41 +01:00
.travis.yml Add wasm demo to github pages 2018-12-16 19:54:17 +01:00
main.go Improve main.go: log error to stderr, output to stdout 2018-12-18 23:53:32 +01:00
Makefile Improve tests: Add pretty_org fixtures to allow testing pretty printing 2018-12-18 23:54:04 +01:00
README.org Support blocks with unindented content 2018-12-19 00:28:53 +01:00

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).

next

differences to goorgeous

To get a feeling take a look at goorgeous vs go-org html rendering of the examples comparison. Please note that a visual comparison is not fair to goorgeous as the stylesheet is not adapted to it. Nonetheless, the html output can be compared by taking a look in the developer console where relevant.

  • no headline ids
  • not changing links to .org files into links to .html files

  • org comments not rendered as html comments (same as ox-html.el)
  • headline priority not exported to html (same as ox-html.el)
  • goorgeous treats all `file:` links as images - go-org checks for an image file extension (same as ox-html.el)
  • no support for [@10] in ordered lists https://github.com/chaseadamsio/goorgeous/issues/18

    • do not plan to implement this