remove commonmark

This commit is contained in:
祁宁
2014-10-16 15:49:52 +08:00
parent 410c603cbd
commit 4fc76a4dc3
20 changed files with 93 additions and 4703 deletions
-26
View File
@@ -1,32 +1,6 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 扩展htmlrender,使得其支持行内换行
*
* @package Markdown
* @copyright Copyright (c) 2014 Typecho team (http://www.typecho.org)
* @license GNU General Public License 2.0
*/
class HtmlRendererExtra extends CommonMark_HtmlRenderer
{
/**
* renderInline
*
* @param CommonMark_Element_InlineElementInterface $inline
* @access public
* @return void
*/
public function renderInline(CommonMark_Element_InlineElementInterface $inline)
{
if ($inline->getType() == CommonMark_Element_InlineElement::TYPE_SOFTBREAK) {
$inline->setType(CommonMark_Element_InlineElement::TYPE_HARDBREAK);
}
return parent::renderInline($inline);
}
}
/**
* Markdown解析
*