@@ -46,9 +46,28 @@ AsciiDoc supports several styles of anchors:
4646 >
4747 > ` This isn't part of the anchor since it is the next paragraph. `
4848
49- * You can also use the _ paragraph anchor_ for table cells and list items if placed before the text such as:
50-
51- > ` | [[foo]] Here is the table cell contents | next cell `
49+ * You must use the _ paragraph anchor_ for table cells, list items, or description list terms
50+ * For table cells and list items, put the anchor before its associated text as follows:
51+ * Table cell<br >
52+ > ` | [[foo]] Here are the table cell contents | next cell `
53+ * List item<br>
54+ > ` * [[foo]] Here is the list item `
55+ * For description list terms (e.g., ` Apples ` , ` Oranges ` ), put the anchor immediately after the term on its own line as follows:
56+ > ` Apples:: ` <br >
57+ > ` [[apple-colors]] ` <br >
58+ > ` Typically be red, yellow, or green. ` <br >
59+ > <br >
60+ > ` Oranges:: Generally orange in color ` <br >
61+ > <br >
62+ > ` Bananas:: ` <br >
63+ > ` [[banana-color]] ` <br >
64+ > ` Generally yellow in color `
65+ * These won't work
66+ > * ` Bananas:: [[banana-color]] Generally yellow in color ` <br >
67+ > * ` [[banana-color]] Bananas:: Generally yellow in color `
68+ > * ` [[banana-color]] ` <br >
69+ > ` Bananas:: ` <br >
70+ > ` Generally yellow in color `
5271
5372Naming restrictions:
5473* Start anchor names with a letter and use ` : ` to separate fields in the anchor name. No spaces allowed in name.
@@ -67,27 +86,32 @@ If you'd like to get more detailed AsciiDoc information on anchors, please read:
6786 > Syntax: ` [#<anchor-name>]# ... # ` <br >
6887 > Example: `Here is an example of [ #foo] #anchoring part# of a paragraph
6988 > and can have [ #bar] #multiple anchors# if needed.`<br >
70- > Tagged text: ` anchoring part ` and ` multiple anchors `
71-
72- 2 . Limitations:
73- * Can't anchor text across multiple paragraphs.
74- * Must have text next to the 2nd hash symbol (i.e., can't have newline after ` [#<anchor-name]# ` ).
75- * Can't put inside admonitions such as [ NOTE] (see #5 below for solution).
76- * Can't have ` . ` in anchor-name (replace with ` - ` )
89+ > Tagged text: ` anchoring part ` and ` multiple anchors ` <br >
90+ >
91+ > Limitations:
92+ > * Can't anchor text across multiple paragraphs.
93+ > * Can't use in table cells, list items, or description list items (see #3 below for work-around).
94+ > * Must have text next to the 2nd hash symbol (i.e., can't have newline after ` [#<anchor-name]# ` ).
95+ > * Can't put inside admonitions such as [ NOTE] (see #5 below for solution).
96+ > * Can't have ` . ` in anchor-name (replace with ` - ` )
7797
78- 3 . Anchor to entire paragraph
98+ 2 . Anchor to entire paragraph
7999
80100 > Syntax: ` [[<anchor-name]] ` <br >
81101 > Example: ` [[zort]] ` <br >
82102 > ` Here is an example of anchoring a whole paragraph. ` <br >
83103 > Tagged text: Entire paragraph<br >
84104
85- 4 . Anchor to entire table cell or a list entry
105+ 3 . Anchor to entire table cell, list entry, or description list entry
86106
87107 > Example: ` | Alan Turing | [[Alan_Turing_Birthday]] June 23, 1912 | London ` <br >
88108 > Tagged text: None (just creates hyperlink to anchor in table/list so not so useful)
109+ >
110+ > Limitations:
111+ > * Anchor must be to entire contents of cell/item.
112+ > * Only one anchor per cell/item.
89113
90- 5 . Anchor inside admonition (e.g. ` [NOTE] ` ):
114+ 4 . Anchor inside admonition (e.g. ` [NOTE] ` ):
91115* Must use ` [[<anchor-name]] ` before each paragraph (with unique anchor names of course) being tagged
92116* Can't use ` [#<anchor-name]#Here's some note text.# ` since it just shows up in HTML as normal text
93117* Don't put ` [[<<anchor-name]] ` before the entire admonition (e.g., before ` [NOTE] ` ) to apply to entire admonition
0 commit comments