Skip to content

Instantly share code, notes, and snippets.

@cordoval
Created October 9, 2012 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cordoval/9151d94414712c631b03 to your computer and use it in GitHub Desktop.
Save cordoval/9151d94414712c631b03 to your computer and use it in GitHub Desktop.
br
<?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);
@cordoval
Copy link
Author

cordoval commented Oct 9, 2012

~ php sundown.php

``` yaml

someLabel

some code text ```

Testing inline markup for code triple tick text

array(1) {
'autolink' =>
bool(true)
}

@cordoval
Copy link
Author

cordoval commented Oct 9, 2012

~ 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)
}

@stof
Copy link

stof commented Oct 10, 2012

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