mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Merge pull request #2341 from lonalore/markdown
Remove unused markdown parser.
This commit is contained in:
commit
d9a6d1de07
@ -92,7 +92,6 @@ $core_image = array (
|
||||
'bb_glyph.php' => '147a7d5075947f99b8599df1ebf835f1',
|
||||
'bb_h.php' => '945730e2d340571a0eb7e4aa78cd41c6',
|
||||
'bb_img.php' => '8f0747f6b462f57c6ccf00c3c15a62ed',
|
||||
'bb_markdown.php' => '871c8ca54ef739f9bae2774e814ded30',
|
||||
'bb_nobr.php' => 'd364d4de62a75e674116d463e2374b5b',
|
||||
'bb_p.php' => '6e238c62bd55a6dae4aa7006456e7e90',
|
||||
'bb_video.php' => '9ea3a1c1d80c6d753b7b424ec746d073',
|
||||
@ -528,7 +527,6 @@ $core_image = array (
|
||||
'mail_validation_class.php' => '6ced3acdeb2e3ba8f785d4a82c0b9b86',
|
||||
'mailout_admin_class.php' => 'd11d71c22f267978ce3c068ef45baed7',
|
||||
'mailout_class.php' => 'cf46e699b92faad90f55820a696501f5',
|
||||
'markdown.php' => 'ad868fa8895d098e0e22a4b2ecf845e6',
|
||||
'media_class.php' => 'df5ca4c876b5254a4d50b33d752c80c5',
|
||||
'menu_class.php' => '3dbca61018aa3c732ba9aa8d9d70f19c',
|
||||
'menumanager_class.php' => 'efa909f4b5496fe8fd6360225cd67c75',
|
||||
|
@ -1,40 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (C) e107 Inc (e107.org), Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
* DIV block bbcode
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
|
||||
class bb_markdown extends e_bb_base
|
||||
{
|
||||
/**
|
||||
* Called prior to save
|
||||
* Re-assemble the bbcode
|
||||
*/
|
||||
function toDB($code_text, $parm)
|
||||
{
|
||||
return '[markdown]'.$code_text.'[/markdown]';
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert Markdown
|
||||
*/
|
||||
function toHTML($code_text, $parm)
|
||||
{
|
||||
require_once(e_HANDLER."markdown.php");
|
||||
return Markdown($code_text);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
@ -35,17 +35,17 @@ class e_bbcode
|
||||
function __construct()
|
||||
{
|
||||
$pref = e107::getPref();
|
||||
|
||||
|
||||
$this->core_bb = array(
|
||||
'alert',
|
||||
'blockquote', 'img', 'i', 'u', 'center',
|
||||
'_br', 'color', 'size', 'code',
|
||||
'flash', 'link', 'email',
|
||||
'url', 'quote', 'left', 'right',
|
||||
'b', 'justify', 'file', 'stream',
|
||||
'textarea', 'list', 'time',
|
||||
'spoiler', 'hide', 'youtube', 'sanitised',
|
||||
'p', 'h', 'nobr', 'block','table','th', 'tr','tbody','td','markdown','video','glyph'
|
||||
'alert',
|
||||
'blockquote', 'img', 'i', 'u', 'center',
|
||||
'_br', 'color', 'size', 'code',
|
||||
'flash', 'link', 'email',
|
||||
'url', 'quote', 'left', 'right',
|
||||
'b', 'justify', 'file', 'stream',
|
||||
'textarea', 'list', 'time',
|
||||
'spoiler', 'hide', 'youtube', 'sanitised',
|
||||
'p', 'h', 'nobr', 'block', 'table', 'th', 'tr', 'tbody', 'td', 'video', 'glyph'
|
||||
);
|
||||
|
||||
foreach($this->core_bb as $c)
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user