-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
38 lines (33 loc) · 1.4 KB
/
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
37
38
<?php
require_once dirname(__FILE__, 3) . '/vendor/autoload.php';
$Parsedown = new Parsedown();
// Here you tell that you expect untrusted user input, so convert all HTML to normal text
// $Parsedown->setSafeMode(true);
// If you want to put the text between `em` tag, prefix and suffix it WITH underscore
echo $Parsedown->text("Welcome, I'am <strong>_Mahmoud Mohamed Ramadan_</strong>");
// `line` method acts as div, or inline elements
echo Parsedown::instance()->line('<h3>How are you?</h3>');
echo $Parsedown->text("<div><strong>Which Programming Language you love?</strong></div>");
echo $Parsedown->text("
<div>
<form action='' method='POST'>
<ul>
<li>
<input type='checkbox' id='c-plus-plus' /> <label style='cursor:pointer' for='c-plus-plus'>C++</label>
</li>
<li>
<input type='checkbox' id='c-sharp' /> <label style='cursor:pointer' for='c-sharp'>C#</label>
</li>
<li>
<input type='checkbox' id='java' /> <label style='cursor:pointer' for='java'>Java</label>
</li>
<li>
<input type='checkbox' id='python' /> <label style='cursor:pointer' for='python'>Python</label>
</li>
</ul>
<div>
<input type='submit' value='Submit' style='background-color:steelblue;color:white;cursor:pointer' />
</div>
</form>
</div>
");