hoedown/README.markdown

114 lines
4.4 KiB
Markdown
Raw Normal View History

2011-07-19 09:12:50 +00:00
Sundown
2011-04-15 08:36:46 +00:00
=======
`Sundown` is a Markdown parser based on the original code of the
[Upskirt library](http://fossil.instinctive.eu/libupskirt/index) by Natacha Porté.
2011-04-15 08:36:46 +00:00
Features
--------
2011-04-15 08:58:19 +00:00
2011-07-19 08:03:14 +00:00
* **Fully standards compliant**
2011-04-15 08:36:46 +00:00
`Sundown` passes out of the box the official Markdown v1.0.0 and v1.0.3
2011-04-15 08:36:46 +00:00
test suites, and has been extensively tested with additional corner cases
to make sure its output is as sane as possible at all times.
* **Massive extension support**
2011-04-15 08:36:46 +00:00
`Sundown` has optional support for several (unofficial) Markdown extensions,
2011-04-15 08:36:46 +00:00
such as non-strict emphasis, fenced code blocks, tables, autolinks,
strikethrough and more.
* **Tested & Ready to be used on production**
2011-04-15 08:36:46 +00:00
`Sundown` has been extensively security audited, and includes protection against
2011-04-15 08:36:46 +00:00
all possible DOS attacks (stack overflows, out of memory situations, malformed
Markdown syntax...) and against client attacks through malicious embedded HTML.
We've worked very hard to make `Sundown` never crash or run out of memory
under *any* input. `Sundown` renders all the Markdown content in GitHub and so
2011-04-15 08:36:46 +00:00
far hasn't crashed a single time.
* **Customizable renderers**
2011-04-15 08:36:46 +00:00
`Sundown` is not stuck with XHTML output: the Markdown parser of the library
2011-04-15 08:36:46 +00:00
is decoupled from the renderer, so it's trivial to extend the library with
custom renderers. A fully functional (X)HTML renderer is included.
2011-04-15 08:36:46 +00:00
* **Optimized for speed**
2011-04-15 08:36:46 +00:00
`Sundown` is written in C, with a special emphasis on performance. When wrapped
2011-04-15 08:36:46 +00:00
on a dynamic language such as Python or Ruby, it has shown to be up to 40
times faster than other native alternatives.
* **Zero-dependency**
2011-04-15 08:36:46 +00:00
`Sundown` is a zero-dependency library composed of 3 `.c` files and their headers.
2011-04-15 08:36:46 +00:00
No dependencies, no bullshit. Only standard C99 that builds everywhere.
2011-05-05 14:46:49 +00:00
Credits
-------
2011-04-15 08:36:46 +00:00
`Sundown` is based on the original Upskirt parser by Natacha Porté, with many additions
by Vicent Marti (@tanoku) and contributions from the following authors:
2011-04-15 08:36:46 +00:00
Ben Noordhuis, Bruno Michel, Joseph Koshy, Krzysztof Kowalczyk, Samuel Bronson,
Shuhei Tanuma
2011-04-15 08:36:46 +00:00
2011-05-11 17:11:55 +00:00
Bindings
--------
`Sundown` is available from other programming languages thanks to these bindings developed
by our awesome contributors.
2011-05-11 17:11:55 +00:00
- [Redcarpet](https://github.com/tanoku/redcarpet) (Ruby)
- [RobotSkirt](https://github.com/benmills/robotskirt) (Node.js)
2011-07-05 01:22:47 +00:00
- [Misaka](https://github.com/FSX/misaka) (Python)
2011-07-29 16:57:10 +00:00
- [ffi-sundown](https://github.com/postmodern/ffi-sundown) (Ruby FFI)
2011-05-11 17:13:51 +00:00
- [Upskirt HS](https://github.com/rostayob/upskirt) (Haskell)
2011-05-24 16:10:19 +00:00
- [Goskirt](https://github.com/madari/goskirt) (Go)
- [Upskirt.go](https://github.com/buu700/upskirt.go) (Go)
2011-07-19 09:12:50 +00:00
- [MoonShine](https://github.com/brandonc/moonshine) (.NET)
2011-07-29 16:57:10 +00:00
- [PHP-Sundown](https://github.com/chobie/php-sundown) (PHP)
- [Sundown.net](https://github.com/txdv/sundown.net) (.NET)
2011-05-11 17:11:55 +00:00
2011-04-15 08:36:46 +00:00
Help us
-------
`Sundown` is all about security. If you find a (potential) security vulnerability in the
library, or a way to make it crash through malicious input, please report it to us,
either directly via email or by opening an Issue on GitHub, and help make the web safer
for everybody.
2011-04-15 08:36:46 +00:00
Install
-------
There is nothing to install. `Sundown` is composed of 3 `.c` files (`markdown.c`,
`buffer.c` and `array.c`), so just throw them in your project. Zero-dependency means
zero-dependency. You might want to include `render/html.c` if you want to use the
included XHTML renderer, or write your own renderer. Either way, it's all fun and joy.
2011-04-15 08:36:46 +00:00
If you are hardcore, you can use the included `Makefile` to build `Sundown` into a dynamic
library, or to build the sample `sundown` executable, which is just a commandline
Markdown to XHTML parser. (If gcc gives you grief about `-fPIC`, e.g. with MinGW, try
`make MFLAGS=` instead of just `make`.)
2011-04-15 08:36:46 +00:00
License
-------
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
<!-- Local Variables: -->
<!-- fill-column: 89 -->
<!-- End: -->