Open tlylt opened 2 years ago
@tlylt what if you use <variable name="tip_body">
instead of span/div?
<variable name="tip_body">
and also <variable id="tip_body">
both ok.
Edit:
<span name="tip_body">
works too
At early days of MarkBind, we used span
for declaring variables. I don't think it is an advertised feature anymore. So, I guess the solution is to replace it with variable
rather than div
in this specific case.
Tell us about your environment Windows
What did you do? Please include the actual source code causing the issue. When adjusting span tags to prevent invalid wrapping of block-level elements, I discovered that in our docs we have this boilerplate:
docs\_markbind\boilerplates\tip.md
This displays the content of
tip_body
"variable" within a box.Some places that use it include the getting started page:
docs\userGuide\gettingStarted.md
When changing the
<span>
to a<div>
, it stops working.What did you expect to happen?
What actually happened? Please include the actual, raw output.
I don't think there is any mention of this behavior of using
<span id="tip_body">
to define a variable in our documentation(in particular, the reusing content page.)