-
-
Save cordoval/9151d94414712c631b03 to your computer and use it in GitHub Desktop.
br
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$render = new \Sundown\Render\HTML(); | |
$md = new \Sundown\Markdown($render, array("autolink"=>true)); | |
$stringOfDeath = <<<EOD | |
``` yaml | |
#someLabel | |
some code text | |
``` | |
Testing inline markup for code ```triple tick text``` | |
EOD; | |
echo $md->render($stringOfDeath); | |
$extensions = $md->getExtensions(); | |
var_dump($extensions); |
~ php sundown.php
<p>``` yaml</p>
<h1>someLabel</h1>
<p>some code text
```</p>
<p>Testing inline markup for code <code>triple tick text</code></p>
array(1) {
'autolink' =>
bool(true)
}
you need to activate the fenced code blocks if you want the GFM syntax for code blocks.
Otherwise, when using standard markdown, they need to be indented
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
~ php sundown.php
``` yaml
someLabel
some code text ```
Testing inline markup for code
triple tick text
array(1) {
'autolink' =>
bool(true)
}