Suggestied feature: the following code will include foo.md as per normal but will replace all spans/divs with id title in foo.md with New Title and level with 2:
<includesrc=”foo.md”><spanid=”title”>New Title</span><spanid=”level”>2</span></include>
foo.md:
## <spanid="title">Dummy Title</span>
This is a level <spanid="level"/> topic.
The level of this topic is <spanid="level"/>.
Rationale: this will greatly increase code reuse as it allows authors to write templates and reuse them while customizing them at the point of reuse (somewhat similar to Jekyll tempates https://jekyllrb.com/docs/layouts/).
Points to consider: What about variations that cannot be captured in spans e.g., html attribute values? For example, if we want to use the following code fragment as a template but we want the background color to be confirguragle at the point of reuse
<boxbackground-color="white" border-color="#cccccc"><md><spanid="content"/></md></box>
Suggestied feature: the following code will include
foo.mdas per normal but will replace all spans/divs with idtitleinfoo.mdwithNew Titleandlevelwith2:foo.md:Rationale: this will greatly increase code reuse as it allows authors to write templates and reuse them while customizing them at the point of reuse (somewhat similar to Jekyll tempates https://jekyllrb.com/docs/layouts/).
Points to consider: What about variations that cannot be captured in spans e.g., html attribute values? For example, if we want to use the following code fragment as a template but we want the background color to be confirguragle at the point of reuse