AnchorSpacing


I'd like to be able to use the :term:definition markup, and add anchors for the term's definition, so that I can elsewhere include the definition without also including the term itself. This almost works, but the spacing's a problem.

For reference, here's the normal :term:definition markup, without anchors.

:Term:Definition
Term
Definition

Here it is if I put the first anchor between :term: and definition.

:Term:[[#onerow]] Definition
[[#onerowend]]

The above is good, but now here's how that looks when I try to include the definition.

(:include Test/AnchorSpacing#onerow#onerowend:)
Term
Definition

The above is good, but now here's how that looks when I try to include the definition.

Term
Definition

So this syntax creates no exception to the rule that each anchor applies to the entire row on which it appears.


In that case, what if I force a linebreak after :term: and before the first anchor?

:Term:\\
[[#tworow]] Definition
[[#tworowend]]

The above does give me the result I want when I include it (see below), but it also has an extra row between the term and the definition.

(:include Test/AnchorSpacing#tworow#tworowend:)
Term

Definition

The above does give me the result I want when I include it (see below), but it also has an extra row between the term and the definition.

Definition


What if you use one slash instead of two slashes?

:Term:\
[[#threerow]] Definition
[[#threerowend]]

The above does give you the result you want when you include it (see below) and it also avoids the extra row between the term and the definition.

(:include Test/AnchorSpacing#threerow#threerowend:)
Term
Definition

The above does give you the result you want when you include it (see below) and it also avoids the extra row between the term and the definition.

Definition

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.21 00.21 MarkupToHTML begin
 3: 00.21 00.21 MarkupToHTML begin
 4: 00.22 00.21 MarkupToHTML end
 5: 00.22 00.21 MarkupToHTML begin
 6: 00.22 00.21 MarkupToHTML end
 7: 00.22 00.21 MarkupToHTML begin
 8: 00.22 00.22 MarkupToHTML end
 9: 00.22 00.22 MarkupToHTML begin
10: 00.22 00.22 MarkupToHTML end
11: 00.23 00.22 MarkupToHTML end
12: 00.23 00.23 MarkupToHTML begin
13: 00.24 00.23 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
14: 00.24 00.24 ReadApprovedUrls SiteAdmin.ApprovedUrls end
15: 00.25 00.24 MarkupToHTML end
16: 00.25 00.24 MarkupToHTML begin
17: 00.26 00.25 MarkupToHTML end
18: 00.26 00.25 now
Peak memory: 3,722,176 bytes