v1.17.2
Context:
parent.md:
<variablename="title">Parent page</variable>
Refer the <includesrc="child.md#summary" />
child.md:
<variablename="title">Child page</variable><spanid="summary">
summary of page: {{ title }}
</span>Current: the parent.md renders Refer the summary of page: Parent page
Expected: Refer the summary of page: Child page
Suggested: override page variables only when specifically requested, as follows:
<variablename="title">Parent page</variable><includesrc="child.md#summary"><spanid="title">{{ title }}</span></include>Rationale: to avoid accidental overriding. We can expect variable names such as title to occur multiple times within an include chain. This problem tripped me up several times when doing #668
v1.17.2
Context:
parent.md:child.md:Current: the parent.md renders
Refer the summary of page: Parent pageExpected:
Refer the summary of page: Child pageSuggested: override page variables only when specifically requested, as follows:
Rationale: to avoid accidental overriding. We can expect variable names such as
titleto occur multiple times within an include chain. This problem tripped me up several times when doing #668