| 1 |
reStructuredText in Go, implemented using PEG grammar |
| 2 |
|
| 3 |
Copyright (c) 2015 Hideo Hattori |
| 4 |
|
| 5 |
This was developed on the basis of Go markdown module implemented |
| 6 |
by Michael Teichgräber. |
| 7 |
|
| 8 |
https://github.com/knieriem/markdown |
| 9 |
|
| 10 |
Copyright (c) 2010 Michael Teichgräber |
| 11 |
|
| 12 |
Michael's markdown module is a translation of peg-markdown, written |
| 13 |
by John MacFarlane, into Go: |
| 14 |
|
| 15 |
Copyright (c) 2008 John MacFarlane |
| 16 |
|
| 17 |
peg-markdown is released under both the GPL and MIT licenses. |
| 18 |
You may pick the license that best fits your needs. |
| 19 |
|
| 20 |
The GPL |
| 21 |
|
| 22 |
This program is free software; you can redistribute it and/or modify |
| 23 |
it under the terms of the GNU General Public License as published by |
| 24 |
the Free Software Foundation; either version 2 of the License, or |
| 25 |
(at your option) any later version. |
| 26 |
|
| 27 |
This program is distributed in the hope that it will be useful, |
| 28 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 29 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 30 |
GNU General Public License for more details. |
| 31 |
|
| 32 |
You should have received a copy of the GNU General Public License |
| 33 |
along with this program; if not, write to the Free Software |
| 34 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 35 |
|
| 36 |
The MIT License |
| 37 |
|
| 38 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
| 39 |
of this software and associated documentation files (the "Software"), to deal |
| 40 |
in the Software without restriction, including without limitation the rights |
| 41 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 42 |
copies of the Software, and to permit persons to whom the Software is |
| 43 |
furnished to do so, subject to the following conditions: |
| 44 |
|
| 45 |
The above copyright notice and this permission notice shall be included in |
| 46 |
all copies or substantial portions of the Software. |
| 47 |
|
| 48 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 49 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 50 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 51 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 52 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 53 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 54 |
THE SOFTWARE. |
| 55 |
|
| 56 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 57 |
|
| 58 |
peg (http://github.com/pointlander/peg), |
| 59 |
based on http://piumarta.com/software/peg/, |
| 60 |
written by Andrew J Snodgrass. |
| 61 |
|
| 62 |
Modifications to support LE grammars by Michael Teichgräber |
| 63 |
|
| 64 |
Copyright (c) 2010, Go Authors |
| 65 |
All rights reserved. |
| 66 |
|
| 67 |
Redistribution and use in source and binary forms, with or without modification, |
| 68 |
are permitted provided that the following conditions are met: |
| 69 |
* Redistributions of source code must retain the above copyright notice, |
| 70 |
this list of conditions and the following disclaimer. |
| 71 |
* Redistributions in binary form must reproduce the above copyright notice, |
| 72 |
this list of conditions and the following disclaimer in the documentation and/or |
| 73 |
other materials provided with the distribution. |
| 74 |
* Neither the name of the Go Authors nor the names of its contributors may be used to |
| 75 |
endorse or promote products derived from this software without specific prior written permission. |
| 76 |
|
| 77 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
| 78 |
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 79 |
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL |
| 80 |
THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 81 |
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 82 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 83 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 84 |
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 85 |
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |