TITLE ^

markdown.pir - A Markdown compiler.

SYNOPSIS ^

as a command line (without interactive mode) :

    $ parrot markdown.pbc document.text
    $ parrot markdown.pbc --target=parse document.text
                                   PAST
                                   HTML

or as a library :

     load_bytecode 'markdown.pbc'
     $P0 = compreg 'markdown'
     $S0 = <<'MARKDOWN'
 Title
 =====
 Some text.
 MARKDOWN
     $P1 = $P0.'compile'($S0)
     $S0 = $P1()
     print $S0

DESCRIPTION ^

This is the base file for the Markdown compiler.

This file includes the parsing and grammar rules from the src/ directory, loads the relevant PGE libraries, and registers the compiler under the name 'Markdown'.

Functions ^

onload()
Creates the Markdown compiler using a PCT::HLLCompiler object.
html(source [, adverbs :slurpy :named])
Transform MAST source into a String containing HTML.
main(args :slurpy) :main
Start compilation by passing any command line args to the Markdown compiler.

SEE ALSO ^

http://daringfireball.net/projects/markdown/

http://en.wikipedia.org/wiki/Markdown

http://en.wikipedia.org/wiki/Lightweight_markup_language


parrot