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 EnablePost = 1, keys=
 1: 00.00 00.00 config start
 2: 00.01 00.01 config end
 3: 00.04 00.03 MarkupToHTML begin
 4: 00.04 00.03 MarkupToHTML begin
 5: 00.04 00.04 MarkupToHTML end
 6: 00.04 00.04 MarkupToHTML begin
 7: 00.04 00.04 MarkupToHTML end
 8: 00.04 00.04 MarkupToHTML begin
 9: 00.05 00.04 MarkupToHTML end
10: 00.05 00.04 MarkupToHTML begin
11: 00.05 00.04 MarkupToHTML end
12: 00.05 00.05 MarkupToHTML end
13: 00.06 00.05 MarkupToHTML begin
14: 00.07 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
15: 00.07 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls end
16: 00.08 00.07 MarkupToHTML end
17: 00.08 00.07 MarkupToHTML begin
18: 00.08 00.07 MarkupToHTML end
19: 00.08 00.07 now
Peak memory: 4,001,704 bytes