mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
modules/doc: Replace Parsedown's decprecated method parse() with text()
refs #4820
This commit is contained in:
parent
ce37c20736
commit
99971e241c
@ -125,7 +125,7 @@ class DocParser
|
|||||||
}
|
}
|
||||||
$fileObject->flock(LOCK_UN);
|
$fileObject->flock(LOCK_UN);
|
||||||
}
|
}
|
||||||
$html = Parsedown::instance()->parse(implode('', $cat));
|
$html = Parsedown::instance()->text(implode('', $cat));
|
||||||
$html = preg_replace_callback(
|
$html = preg_replace_callback(
|
||||||
'#<pre><code class="language-php">(.*?)\</code></pre>#s',
|
'#<pre><code class="language-php">(.*?)\</code></pre>#s',
|
||||||
array($this, 'highlight'),
|
array($this, 'highlight'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user