diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-01-28 09:47:02 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-01-31 21:08:20 +0000 |
| commit | 6f59525087dd4ee1d17c7375524d95ace7942861 (patch) | |
| tree | 569df8ec022f18b63942e004705881e7570cdbaa /app/Report | |
| parent | 2b817d024385cac90d58e3d310c606510a7302ad (diff) | |
| download | webtrees-6f59525087dd4ee1d17c7375524d95ace7942861.tar.gz webtrees-6f59525087dd4ee1d17c7375524d95ace7942861.tar.bz2 webtrees-6f59525087dd4ee1d17c7375524d95ace7942861.zip | |
Upgrade commonmark from 1.x to 2.x
Diffstat (limited to 'app/Report')
| -rw-r--r-- | app/Report/ReportParserGenerate.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Report/ReportParserGenerate.php b/app/Report/ReportParserGenerate.php index b8c13d6490..e7a5a23864 100644 --- a/app/Report/ReportParserGenerate.php +++ b/app/Report/ReportParserGenerate.php @@ -1005,9 +1005,9 @@ class ReportParserGenerate extends ReportParserBase $tmp = explode(':', $tag); if (in_array(end($tmp), ['NOTE', 'TEXT'], true)) { if ($this->tree->getPreference('FORMAT_TEXT') === 'markdown') { - $value = strip_tags(Registry::markdownFactory()->markdown($this->tree)->convertToHtml($value)); + $value = strip_tags(Registry::markdownFactory()->markdown($value, $this->tree)); } else { - $value = strip_tags(Registry::markdownFactory()->autolink($this->tree)->convertToHtml($value)); + $value = strip_tags(Registry::markdownFactory()->autolink($value, $this->tree)); } } |
