Description: <a href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a> allows you to write using an easy-to-read, easy-to-write plain text format. Based on the original Perl version by <a href="http://daringfireball.net/">John Gruber</a>. <a href="http://michelf.com/projects/php-markdown/">More...</a>
# Add a footnote id prefix to posts when inside a loop.
functionmdwp_MarkdownPost($text){
static$parser;
if(!$parser){
$parser_class=MARKDOWN_PARSER_CLASS;
$parser=new$parser_class;
}
if(is_single()||is_page()||is_feed()){
$parser->fn_id_prefix="";
}else{
$parser->fn_id_prefix=get_the_ID().".";
}
return$parser->transform($text);
}
# Comments
# - Remove WordPress paragraph generator.
# - Remove WordPress auto-link generator.
...
...
@@ -140,15 +164,15 @@ if (isset($wp_version)) {
functionidentify_modifier_markdown(){
returnarray(
'name'=>'markdown',
'type'=>'modifier',
'nicename'=>'Markdown',
'description'=>'A text-to-HTML conversion tool for web writers',
'authors'=>'Michel Fortin and John Gruber',
'licence'=>'BSD-like',
'version'=>MARKDOWN_VERSION,
'help'=>'<a href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a> allows you to write using an easy-to-read, easy-to-write plain text format. Based on the original Perl version by <a href="http://daringfireball.net/">John Gruber</a>. <a href="http://michelf.com/projects/php-markdown/">More...</a>'
);
'name'=>'markdown',
'type'=>'modifier',
'nicename'=>'PHP Markdown Extra',
'description'=>'A text-to-HTML conversion tool for web writers',
'authors'=>'Michel Fortin and John Gruber',
'licence'=>'GPL',
'version'=>MARKDOWNEXTRA_VERSION,
'help'=>'<a href="http://daringfireball.net/projects/markdown/syntax">Markdown syntax</a> allows you to write using an easy-to-read, easy-to-write plain text format. Based on the original Perl version by <a href="http://daringfireball.net/">John Gruber</a>. <a href="http://michelf.com/projects/php-markdown/">More...</a>',