d77176912b
* Migrate to go modules * make vendor * Update mvdan.cc/xurls * make vendor * Update code.gitea.io/git * make fmt-check * Update github.com/go-sql-driver/mysql * make vendor |
||
---|---|---|
.. | ||
.gitignore | ||
.travis.yml | ||
goorgeous.go | ||
gopher.gif | ||
gopher_small.gif | ||
header.go | ||
LICENSE | ||
README.org |
chaseadamsio/goorgeous
https://travis-ci.org/chaseadamsio/goorgeous.svg?branch=master https://coveralls.io/repos/github/chaseadamsio/goorgeous/badge.svg?branch=master
goorgeous is a Go Org to HTML Parser.
Pronounced: Go? Org? Yes!
"Org mode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system."
The purpose of this package is to come as close as possible as parsing an *.org
document into HTML, the same way one might publish with org-publish-html from Emacs.
Usage
Why?
First off, I've become an unapologetic user of Emacs & ever since finding org-mode
I use it for anything having to do with writing content, organizing my life and keeping documentation of my days/weeks/months.
Although I like Emacs & emacs-lisp
, I publish all of my html sites with Hugo Static Site Generator and wanted to be able to write my content in org-mode
in Emacs rather than markdown.
Hugo's implementation of templating and speed are unmatched, so the only way I knew for sure I could continue to use Hugo and write in org-mode
seamlessly was to write a golang parser for org content and submit a PR for Hugo to use it.
Acknowledgements
I leaned heavily on russross' blackfriday markdown renderer as both an example of how to write a parser (with some updates to leverage the go we know today) and reusing the blackfriday HTML Renderer so I didn't have to write my own!