-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
27 lines (22 loc) · 689 Bytes
/
init.php
File metadata and controls
27 lines (22 loc) · 689 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* Set proper markdown version
*
* + run EDGERING enhancements
* + - add support for nested images
* + - add support for image alignment
* + - add support for custom table classes
*
* @return function Markdown($text)
*
*/
require_once(__DIR__ . '/Michelf/MarkdownExtra.inc.php');
require_once(__DIR__ . '/Edgering/MarkdownEdgering.php');
define("MARKDOWN_VERSION", \Michelf\MarkdownEdgering::MARKDOWNLIB_VERSION);
function Markdown($text)
{
$text = \Michelf\MarkdownEdgering::defaultTransform($text);
$text = \Michelf\MarkdownExtra::defaultTransform($text);
$text = \Michelf\MarkdownEdgering::defaultPostTransform($text);
return $text;
}