mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-30 04:23:11 +03:00
Includes: Developed to get new system working with inline includes
Adds logic for locating and splitting text nodes. Adds specific classes to offload tag/content specific logic.
This commit is contained in:
@ -37,7 +37,7 @@ class PageIncludeParserTest extends TestCase
|
||||
protected function runParserTest(string $html, array $contentById, string $expected)
|
||||
{
|
||||
$parser = new PageIncludeParser($html, function (int $id) use ($contentById) {
|
||||
return $contentById[strval($id)] ?? null;
|
||||
return $contentById[strval($id)] ?? '';
|
||||
});
|
||||
|
||||
$result = $parser->parse();
|
||||
|
Reference in New Issue
Block a user