| 1 | <?php |
||
| 13 | class Markdown extends AbstractMiscellaneous |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Render an arbitrary Markdown document |
||
| 18 | * |
||
| 19 | * @link https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document |
||
| 20 | * |
||
| 21 | * @param string $text The Markdown text to render |
||
| 22 | * @param string $mode The rendering mode. |
||
| 23 | * @param string $context The repository context. Only taken into account when rendering as gfm |
||
| 24 | * |
||
| 25 | * @return array |
||
| 26 | */ |
||
| 27 | public function render(string $text, string $mode = AbstractApi::MODE_MARKDOWN, string $context = ''): array |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Render a Markdown document in raw mode |
||
| 38 | * |
||
| 39 | * @link https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode |
||
| 40 | * |
||
| 41 | * @param string $string |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function renderRaw(string $string): array |
||
| 50 | } |