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.00 00.00 config end
 2: 00.03 00.02 MarkupToHTML begin
 3: 00.03 00.02 MarkupToHTML begin
 4: 00.03 00.03 MarkupToHTML end
 5: 00.03 00.03 MarkupToHTML begin
 6: 00.04 00.03 MarkupToHTML end
 7: 00.04 00.03 MarkupToHTML begin
 8: 00.04 00.03 MarkupToHTML end
 9: 00.04 00.03 MarkupToHTML begin
10: 00.04 00.03 MarkupToHTML end
11: 00.05 00.04 MarkupToHTML end
12: 00.05 00.04 MarkupToHTML begin
13: 00.06 00.05 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
14: 00.06 00.06 ReadApprovedUrls SiteAdmin.ApprovedUrls end
15: 00.07 00.06 MarkupToHTML end
16: 00.07 00.06 MarkupToHTML begin
17: 00.08 00.07 MarkupToHTML end
18: 00.08 00.07 now
Peak memory: 3,175,400 bytes