BenjaminHoegh / ParsedownExtended

ParsedownExtended is an extention for Parsedown, offering additional features and functionalities.
https://benjaminhoegh.github.io/ParsedownExtended
MIT License
37 stars 7 forks source link

Call to undefined method ParsedownExtended::blockMermaid() #16

Closed BrainStone closed 4 years ago

BrainStone commented 4 years ago

It appears that you forgot to add the blocks for mermaid and chart.js.

PHP message: PHP Fatal error:  Uncaught Error: Call to undefined method ParsedownExtended::blockMermaid() in .../includes/parsedown_extended/ParsedownExtended.php:274
Stack trace:
#0 .../includes/parsedown_extended/ParsedownExtended.php(195): ParsedownExtended->linesElements(Array)
#1 .../includes/parsedown_extended/ParsedownExtended.php(1193): ParsedownExtended->textElements('# Test\n\n## TOC ...')
#2 /var/www/dev-aura-dev/public_html/markdown.php(68): ParsedownExtended->text('# Test\n\n## TOC ...')
#3 {main}
  thrown in .../includes/parsedown_extended/ParsedownExtended.php on line 274

Happens with:

BenjaminHoegh commented 4 years ago

What version of Parsedown do you use?

BrainStone commented 4 years ago

v1.8.0-beta-6

BenjaminHoegh commented 4 years ago

Resolved in release v1.0-beta-5

BrainStone commented 4 years ago

Works fine. Thank you very much!