Nest Reuse can't show content #3282

Closed
opened 2026-02-05 06:13:52 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @leofcshen on GitHub (Oct 14, 2022).

Describe the Bug

I create a nest reuse contaion some reuse.
The sub reuse block can't show content
But if I write one of the sub reuse Syntax below, the nest reuse can show this sub reuse content suddenly .

Steps to Reproduce

1.html code like below

<p id="bkmrk-id%3Dbkmrk-1"><code>id=bkmrk-1</code></p>
<p id="bkmrk-1">10.0.0.1</p>
<p id="bkmrk-id%3Dbkmrk-2"><code>id=bkmrk-2</code></p>
<p id="bkmrk-2">accunt</p>
<p id="bkmrk-id%3Dbkmrk-3"><code>id=bkmrk-3</code></p>
<p id="bkmrk-3">password</p>
<h5 id="bkmrk-">Test Reuse</h5>
<p id="bkmrk-id%3Dbkmrk-reusepackag"><code>id=bkmrk-ReusePackage</code></p>
<p id="bkmrk-ReusePackage">Host:{{@8#bkmrk-1}}<br>Account:{{@8#bkmrk-2}}<br>Password:{{@8#bkmrk-3}}</p>
<h5 id="bkmrk-test-nest-reuse">Test Nest Reuse</h5>
<p id="bkmrk-%7B%7B%408%23bkmrk-reusepack">{{@8#bkmrk-ReusePackage}}</p>
<p id="bkmrk--0"><br></p>

2.Editor like below
image

3.Show like below
image

4.If I put one of sub reuse below, the sub reuse can show in nest reuse
image
image``

Expected Behaviour

The nest reuse should show sub reuse content normally.

Screenshots or Additional Context

No response

Browser Details

Chrome 105.0.5195.127(64-bit) on Windows 10

Exact BookStack Version

v22.07.3

PHP Version

No response

Hosting Environment

docker container

Originally created by @leofcshen on GitHub (Oct 14, 2022). ### Describe the Bug I create a nest reuse contaion some reuse. The sub reuse block can't show content But if I write one of the sub reuse Syntax below, the nest reuse can show this sub reuse content suddenly . ### Steps to Reproduce 1.html code like below ```text <p id="bkmrk-id%3Dbkmrk-1"><code>id=bkmrk-1</code></p> <p id="bkmrk-1">10.0.0.1</p> <p id="bkmrk-id%3Dbkmrk-2"><code>id=bkmrk-2</code></p> <p id="bkmrk-2">accunt</p> <p id="bkmrk-id%3Dbkmrk-3"><code>id=bkmrk-3</code></p> <p id="bkmrk-3">password</p> <h5 id="bkmrk-">Test Reuse</h5> <p id="bkmrk-id%3Dbkmrk-reusepackag"><code>id=bkmrk-ReusePackage</code></p> <p id="bkmrk-ReusePackage">Host:{{@8#bkmrk-1}}<br>Account:{{@8#bkmrk-2}}<br>Password:{{@8#bkmrk-3}}</p> <h5 id="bkmrk-test-nest-reuse">Test Nest Reuse</h5> <p id="bkmrk-%7B%7B%408%23bkmrk-reusepack">{{@8#bkmrk-ReusePackage}}</p> <p id="bkmrk--0"><br></p> ``` 2.Editor like below ![image](https://user-images.githubusercontent.com/74611374/195755439-370f3c1e-22ec-4354-8f56-e2937be0d2a2.png) 3.Show like below ![image](https://user-images.githubusercontent.com/74611374/195755700-e0699f1d-83da-4959-895f-b76c32c20477.png) 4.If I put one of sub reuse below, the sub reuse can show in nest reuse ![image](https://user-images.githubusercontent.com/74611374/195755948-20ff8790-598f-42c4-8f5c-9fbb8b3fd65c.png) ![image](https://user-images.githubusercontent.com/74611374/195756078-b1f7a62c-ad84-4244-8702-9ba21dad9327.png)`` ### Expected Behaviour The nest reuse should show sub reuse content normally. ### Screenshots or Additional Context _No response_ ### Browser Details Chrome 105.0.5195.127(64-bit) on Windows 10 ### Exact BookStack Version v22.07.3 ### PHP Version _No response_ ### Hosting Environment docker container
OVERLORD added the 🐛 Bug label 2026-02-05 06:13:52 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 14, 2022):

Thanks for reporting @leofcshen but nested use of include tags is not supported at all, and is already requested as a feature in #2845.

The fact this partially works is simply a side-affect of how tags are parsed and replaced top-to-bottom.

@ssddanbrown commented on GitHub (Oct 14, 2022): Thanks for reporting @leofcshen but nested use of include tags is not supported at all, and is already requested as a feature in #2845. The fact this partially works is simply a side-affect of how tags are parsed and replaced top-to-bottom.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3282