Markdown クラス
A plain text to HTML converter, originally by John Gruber. FuelPHP uses a ported and extended version by Michel Fortin.
parse($text)
Parses Markdown and returns HTML.
Static |
Yes |
パラメータ |
パラメータ |
規定値 |
説明 |
$text |
必須 |
Markdown text to parse. |
|
返り値 |
string |
例 |
$string = '# About Markdown
Markdown is a text-to-HTML conversion tool for web writers.
Markdown allows you to write using an easy-to-read, easy-to-write
plain text format, then convert it to structurally valid HTML.
* It features bullet points
* As well as other handy features';
echo Markdown::parse($string);
Returns
<h1>About Markdown</h1>
<p>Markdown is a text-to-HTML conversion tool for web writers.
Markdown allows you to write using an easy-to-read, easy-to-write
plain text format, then convert it to structurally valid HTML.</p>
<ul>
<li>It features bullet points</li>
<li>As well as other handy features</li>
</ul>
|