Change to triple-backtick code fences.

Former-commit-id: 81d38ed0155734a72d98b2e16425635da907aa01
This commit is contained in:
John-David Dalton
2012-08-17 13:04:32 -07:00
parent b328972c4d
commit 15b14e12e2
5 changed files with 35 additions and 35 deletions

View File

@@ -12,7 +12,7 @@ For a list of upcoming features, check out our [roadmap](https://github.com/jdal
Usage example:
~~~ php
```php
require("docdown.php");
// generate Markdown
@@ -20,7 +20,7 @@ $markdown = docdown(array(
"path" => $filepath,
"url" => "https://github.com/username/project/blob/master/my.js"
));
~~~
```
## Author

View File

@@ -140,7 +140,7 @@ class Entry {
preg_match('#\*\s*@example\s+([\s\S]*?)(?=\*\s\@[a-z]|\*/)#', $this->entry, $result);
if (count($result)) {
$result = trim(preg_replace('/(?:^|\n)\s*\* ?/', "\n", $result[1]));
$result = '~~~ ' . $this->lang . "\n" . $result . "\n~~~";
$result = '```' . $this->lang . "\n" . $result . "\n```";
}
return $result;
}