1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Includes: Added ID de-duplicating and more thorough clean-up

This commit is contained in:
Dan Brown
2023-11-27 20:16:27 +00:00
parent 71c93c8878
commit b569827114
3 changed files with 22 additions and 6 deletions

View File

@@ -179,6 +179,15 @@ class PageIncludeParserTest extends TestCase
);
}
public function test_multi_source_elem_whole_document_with_nested_content_origin()
{
$this->runParserTest(
'<p><strong>{{@45}}</strong></p>',
['45' => '<p>Testing</p><blockquote>This</blockquote>'],
'<p>Testing</p><blockquote>This</blockquote>',
);
}
public function test_multiple_tags_in_same_origin_with_inline_content()
{
$this->runParserTest(
@@ -202,7 +211,7 @@ class PageIncludeParserTest extends TestCase
$this->runParserTest(
'<div><p>This <strong>{{@45#content}}</strong> content is {{@45#content}}</p>{{@45#content}}</div>',
['45' => '<pre id="content">block</pre>'],
'<div><pre id="content">block</pre><p>This <strong></strong> content is </p><pre id="content">block</pre><pre id="content">block</pre></div>',
'<div><pre id="content">block</pre><p>This content is </p><pre id="content">block</pre><pre id="content">block</pre></div>',
);
}