forked from kaoken/markdown-it-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (33 loc) · 925 Bytes
/
index.php
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
28
29
30
31
32
33
34
35
36
<?php
/**
* It is for testing each application.
*/
require_once __DIR__.'/vendor/autoload.php';
ini_set( 'display_errors', 1 );
ini_set( 'error_reporting', E_ALL );
//use Kaoken\MarkdownIt\MarkdownIt;
//use Kaoken\MarkdownIt\Plugins\MarkdownItContainer;
//$md = new MarkdownIt([
// "html"=> true,
// "langPrefix"=> '',
// "typographer"=> true,
// "linkify"=> true
//]);
////$md->plugin(new MarkdownItContainer(), 'name');
//$str = '\\'.json_decode('"\uD835\uDC9C"');
//echo($md->render($str));
switch(isset($_GET['i'])?$_GET['i']:'0'){
case '1':
new Kaoken\Test\MDUrl\CTest();break;
case '2':
new Kaoken\Test\LinkifyIt\CTest();break;
case '3':
new Kaoken\Test\Punycode\CTest();break;
case '4':
new Kaoken\Test\MarkdownIt\Plugins\CTest();break;
case '99':
phpinfo();
break;
default:
new Kaoken\Test\MarkdownIt\CTest();break;
}