]> BookStack Code Mirror - bookstack/commit
Updated page includes to be top-level for code blocks
authorDan Brown <redacted>
Mon, 15 Nov 2021 00:48:05 +0000 (00:48 +0000)
committerDan Brown <redacted>
Mon, 15 Nov 2021 00:48:05 +0000 (00:48 +0000)
commite29d03ae769db2bc1fe02520862c26d04cc5ea91
treecd0f6857e61781cc6548c403471ec9f0de68455e
parent85154fff693c80374bc048ca9497df663bd5e32d
Updated page includes to be top-level for code blocks

This change means that code blocks are now included still wrapped in
their pre tags, as we do for tables and lists.
Previously the <code> inner content would be included which would lead
to a generally bad/broken presentation.

Hopefully should not be a breaking change as section include tags for
code was tricky to get to, and it was in a semi-broken state.

For #2406
app/Entities/Tools/PageContent.php
tests/Entity/PageContentTest.php