Find a file
Niklas Fasching a60f844e38 Add basic support for statistic tokens (e.g. [100%] [1/1])
Org mode does not care where those tokens are when it comes to the
export (afaict). We'll do the same.

(They should only be in the first line of a list item or a headline)
2018-12-18 14:14:08 +01:00
etc html: Render headline priority 2018-12-17 22:39:29 +01:00
org Add basic support for statistic tokens (e.g. [100%] [1/1]) 2018-12-18 14:14:08 +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 Support basic #+INCLUDE (src/example/export block only) 2018-12-14 17:09:00 +01:00
Makefile Support basic #+INCLUDE (src/example/export block only) 2018-12-14 17:09:00 +01:00
README.org Improve ATTR_HTML keyword parsing 2018-12-18 00:16:41 +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

TODO list checkboxes & statistics [0/2]

https://orgmode.org/manual/Checkboxes.html

  1. parse checkbox of list item

    • convert to html radio button unchecked, indeterminate (visual only), checked
  2. parse statistic cookies of headlines & first line of list items -convert to [sub 1<sup>1</sup>&frasl;<sub>2</sub>] || [90%]

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