Skip to content

Commit

Permalink
Acknowledge Fletcher Penney for ODF code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Apr 4, 2011
1 parent 5208ed9 commit 76a0755
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
markdown in c, implemented using PEG grammar
Copyright (c) 2008 John MacFarlane
Copyright (c) 2008-2011 John MacFarlane
ODF output code (c) 2011 Fletcher T. Penney

peg-markdown is released under both the GPL and MIT licenses.
You may pick the license that best fits your needs.
Expand Down
16 changes: 11 additions & 5 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ What is this?
This is an implementation of John Gruber's [markdown][] in C. It uses a
[parsing expression grammar (PEG)][] to define the syntax. This should
allow easy modification and extension. It currently supports output in
HTML, LaTeX, or groff_mm formats, and adding new formats is relatively
easy.
HTML, LaTeX, ODF, or groff_mm formats, and adding new formats is
relatively easy.

[parsing expression grammar (PEG)]: http://en.wikipedia.org/wiki/Parsing_expression_grammar
[markdown]: http://daringfireball.net/projects/markdown/
Expand Down Expand Up @@ -170,15 +170,16 @@ bitwise `&` operator and the following constants:

[Pandoc's footnote syntax]: http://johnmacfarlane.net/pandoc/README.html#footnotes

`output_format` is either `HTML_FORMAT`, `LATEX_FORMAT`, or `GROFF_MM_FORMAT`.
`output_format` is either `HTML_FORMAT`, `LATEX_FORMAT`, `ODF_FORMAT`,
or `GROFF_MM_FORMAT`.

To use the library, include `markdown_lib.h`. See `markdown.c` for an example.

Hacking
=======

It should be pretty easy to modify the program to produce other formats
than HTML or LaTeX, and to parse syntax extensions. A quick guide:
It should be pretty easy to modify the program to produce other formats,
and to parse syntax extensions. A quick guide:

* `markdown_parser.leg` contains the grammar itself.

Expand Down Expand Up @@ -212,3 +213,8 @@ than HTML or LaTeX, and to parse syntax extensions. A quick guide:
they cause problems with non-ascii input. Instead, use: `( !'a' !'b'
!'c' . )`

Acknowledgements
================

Support for ODF output was added by Fletcher T. Penney.

0 comments on commit 76a0755

Please sign in to comment.