Reuse within codeblocks
Posted: Fri Dec 15, 2023 8:56 pm
I have a series of questions in a reuse file marked with unique IDs for reuse.
I'm trying to pull various questions from the reuse file into a codeblock in one of my topics. However, the formatting gets messed up. A line break and additional spaces are put in the middle of each reused question in the target file.
Is it possible to use reuse effectively within codeblocks? If not, is there a workaround to achieve the codeblock look with pieces reused from another file? If I put the reused questions as an unordered list in the target file instead of a codeblock, the questions are not broken midstream, but of course, it looks like a bulleted list instead of a code example.
I'm trying to pull various questions from the reuse file into a codeblock in one of my topics. However, the formatting gets messed up. A line break and additional spaces are put in the middle of each reused question in the target file.
Is it possible to use reuse effectively within codeblocks? If not, is there a workaround to achieve the codeblock look with pieces reused from another file? If I put the reused questions as an unordered list in the target file instead of a codeblock, the questions are not broken midstream, but of course, it looks like a bulleted list instead of a code example.