| Conditions | 5 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | */ |
||
| 18 | private function initConvertsMarkdown() { |
||
| 19 | if (!empty($this->markdown)) { |
||
| 20 | $environment = Environment::createCommonMarkEnvironment(); |
||
| 21 | $environment->addExtension(new TableExtension()); |
||
| 22 | |||
| 23 | $converter = new CommonMarkConverter([], $environment); |
||
| 24 | |||
| 25 | foreach ($this->markdown as $markdownField) { |
||
| 26 | if ($this->content->has($markdownField)) { |
||
| 27 | $this->content[$markdownField . '_html'] = $converter->convertToHtml($this->content[$markdownField]); |
||
|
|
|||
| 28 | } |
||
| 32 | } |