Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
doc : how use Markdown from Rakudo
  • Loading branch information
fperrad committed Mar 30, 2009
1 parent b6b8c83 commit e83a324
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion markdown.pir
Expand Up @@ -12,7 +12,7 @@ as a command line (without interactive mode) :
PAST
HTML

or as a library :
or as a library from PIR code :

load_bytecode 'markdown.pbc'
$P0 = compreg 'markdown'
Expand All @@ -25,6 +25,17 @@ or as a library :
$S0 = $P1()
print $S0

or as a compiler from Rakudo :

my $markdown = q{
Title
=====
Some text.

};

say eval($markdown, :lang<markdown>);

=head2 Description

This is the base file for the Markdown compiler.
Expand Down

0 comments on commit e83a324

Please sign in to comment.