J.W. Han > Markdown-Foswiki-0.04 > Markdown::Foswiki

Download:
Markdown-Foswiki-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Markdown::Foswiki - Convert Markdown to Foswiki(Twiki) α

VERSION ^

version 0.04

SYNOPSIS ^

    use Markdown::Foswiki;
    my $mc = Markdown::Foswiki->new();
    my @md_lines = $mc->getData('index.md');
    my $fw_text = $mc->process(@md_lines);;
    print $fw_text;


    use Markdown::Foswiki;
    my $mc = Markdown::Foswiki->new();
    print $mc->process($mc->getData('index.md'));


    $mc->save ( $fw_text, '', 'index.txt');

DESCRIPTION ^

This module markdown format files foswiki (Twiki) to convert the format of the module.

markdown in the case of internal links basepath (directory) specified in the config, and remove all the extensions are removed and replaced with basepath.

If the external link is retained.

CODE detecting

This Feature wrapping to %CODE% Mark or verbatim tag if detect code context

you can switching Whether to use from config-IncLang Attribute

set 'none' if want to maintaining code context

set 'plain' if want to wrapping to verbatim tag

be Styling with in SyntaxHighlighter if setting other options,

must installed SyntaxHighLighter plugin at your foswiki or twiki

METHODS ^

new

create Markdown::Foswiki instance

getData( $MarkdownFile )

    @ML = $mc->getData( $file );

Returns loaded markdown text lines from $file

process( @MarkdownLines )

    $FwText = $mc->process( @ML );

setConfig( 'Arg1' => Value ,...)

save( $fwText, savedir, savefile)

    $mc->save($FwText, '', 'newfile.txt');

SUPPORT ^

HTML::Wikiconverter::Markdown

SEE ALSO ^

SOURCE REPOSITORY ^

https://github.com/skyend/Markdown--Foswiki

AUTHOR ^

J.W. Han (skyend) <skyend@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright (c) J.W. Han, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: