Gorst Save

Go implementation of reStructuredText

Project README

gorst

.. image:: https://travis-ci.org/hhatto/gorst.svg?branch=master :target: https://travis-ci.org/hhatto/gorst :alt: Build status

.. image:: https://godoc.org/github.com/hhatto/gorst?status.png :target: http://godoc.org/github.com/hhatto/gorst :alt: GoDoc

This is a Go_ implementation of reStructuredText_. developed on the basis of Go markdown module implemented by Michael Teichgräber_ .

Only Support for HTML output is implemented.

.. _reStructuredText: http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html .. _Go: http://golang.org/ .. _Go markdown module implemented by Michael Teichgräber: https://github.com/knieriem/markdown

This is experimental module. Highly under development.

Installation

.. code-block:: bash

$ go get github.com/hhatto/gorst

Usage

.. code-block:: go

package main

import (
    "bufio"
    "os"
    "github.com/hhatto/gorst"
)

func main() {
    p := rst.NewParser(nil)

    w := bufio.NewWriter(os.Stdout)
    p.ReStructuredText(os.Stdin, rst.ToHTML(w))
    w.Flush()
}

TODO

  • Simple Table
  • Footnotes
  • Citations
  • Directives (figure, contents, ...)
  • etc...
Open Source Agenda is not affiliated with "Gorst" Project. README Source: hhatto/gorst
Stars
34
Open Issues
1
Last Commit
5 years ago
Repository

Open Source Agenda Badge

Open Source Agenda Rating