rstgo
=====

Copyright (c) 2026 Joseph Kato. Released under the MIT License (see LICENSE).

rstgo is a Go port of Docutils (https://docutils.sourceforge.io/), version
0.23. Its parser, document tree, transforms and HTML writers are derived
from the Docutils Python source code.

Most of Docutils has been placed in the public domain by its authors (David
Goodger and the Docutils project contributors) and carries no license
requirements. The parts listed below are exceptions: they are released under
the BSD 2-Clause License, and rstgo contains code or data derived from them,
or unmodified copies of them.

Derived code (ported to Go)
---------------------------

docutils/writers/_html_base.py
    Copyright (c) 2016 David Goodger, Günter Milde
    -> htmlwriter.go, htmlvisit.go, htmlmath.go, imagesize.go

docutils/writers/html5_polyglot/__init__.py
    Copyright (c) 2005, 2009, 2015 Günter Milde,
    portions from html4css1 (c) David Goodger
    -> htmlwriter.go, htmlvisit.go

docutils/utils/math/__init__.py, docutils/utils/math/latex2mathml.py
    Copyright (c) 2005 Jens Jørgen Mortensen
    Copyright (c) 2010, 2021, 2024 Günter Milde
    -> mathml.go, htmlmath.go

docutils/utils/math/math2html.py (derived from eLyXer)
    Copyright (c) 2009, 2010 Alex Fernández; 2021 Günter Milde
    -> math2html.go, math2htmldata.go

docutils/utils/math/mathml_elements.py,
docutils/utils/math/mathalphabet2unichar.py,
docutils/utils/math/tex2unichar.py
    Copyright (c) 2024 Günter Milde
    -> mathml.go, mathdata.go, mathmldata.go

docutils/utils/punctuation_chars.py
    Copyright (c) 2011, 2017 Günter Milde
    -> punctdata.go, unidata.go and the inline markup recognition rules

Unmodified copies
-----------------

css/minimal.css, css/plain.css, css/responsive.css, css/tuftig.css,
css/italic-field-names.css
    Copyright (c) 2015-2023 Günter Milde. BSD 2-Clause License.

css/math.css
    Copyright (c) 2009, 2010 Alex Fernández; 2021 Günter Milde.
    BSD 2-Clause License.

css/html4css1.css, include/*.txt
    Public domain.

testdata/docutils/, testdata/suites/
    Documentation, project documents, functional test inputs and unit test
    inputs from the Docutils 0.23 source distribution. Public domain, except
    for the few test modules by Günter Milde that are under the BSD 2-Clause
    License; see testdata/docutils/COPYING.rst for the full list. The
    expected output under testdata/ was generated by Docutils 0.23.

BSD 2-Clause License
--------------------

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
