Closed froschdesign closed 4 years ago
The rendering of some code examples with PHP and HTML are wrong.
Example: https://docs.mezzio.dev/mezzio/v3/features/template/plates/#escaperextension
<html> <head> <meta name="author" content="<?= $this->escapeHtmlAttr($this->author) ?>"> <link rel="alternative" href="<?= $this->escapeUrl($this->alternative) ?>"> <style>___PHP2___</style> <script>___PHP3___</script> </head> <body> ___PHP4___ </body> </html>
<html> <head> <meta name="author" content="<?= $this->escapeHtmlAttr($this->author) ?>"> <link rel="alternative" href="<?= $this->escapeUrl($this->alternative) ?>"> <style><?= $this->escapeCss($this->styles) ?></style> <script><?= $this->escapeJs($this->script) ?></script> </head> <body> <?= $this->escapeHtml($this->content) ?> </body> </html>
Fixed with the usage of Superfences from PyMdown Extensions.
Related to #14 and #35.
Bug Report
Summary
The rendering of some code examples with PHP and HTML are wrong.
Example: https://docs.mezzio.dev/mezzio/v3/features/template/plates/#escaperextension
Current behavior
Expected behavior
More examples