Markdown::Foswiki - Convert Markdown to Foswiki(Twiki) α
version 0.04
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');
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.
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
create Markdown::Foswiki instance
@ML = $mc->getData( $file );
Returns loaded markdown text lines from $file
$FwText = $mc->process( @ML );
header_text
default :
%META:TOPICINFO{author="Markdown::Foswiki" date="unixTimeStamp" format="1.1" version="1"}%
or your header
head_contents
"%TOC%\n";
or your head contents
footer_text
blink
or your footer
foot_contents
or your foot contents
InterLinkBase
IncLang
for code detectings
plain
options none plain c c++ sql perl ...
http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/
$mc->save($FwText, '', 'newfile.txt');
HTML::Wikiconverter::Markdown
https://github.com/skyend/Markdown--Foswiki
J.W. Han (skyend) <skyend@cpan.org>
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.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'α'. Assuming CP1252
To install Markdown::Foswiki, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Markdown::Foswiki
CPAN shell
perl -MCPAN -e shell install Markdown::Foswiki
For more information on module installation, please visit the detailed CPAN module installation guide.