@@ -1006,6 +1006,185 @@ Document[0, 85]
1006
1006
````````````````````````````````
1007
1007
1008
1008
1009
+ ### In Links
1010
+
1011
+
1012
+ ```````````````````````````````` example Footnotes - In Links: 1
1013
+ [[^footnote]](/url)
1014
+ .
1015
+ <p><a href="/url">[^footnote]</a></p>
1016
+ .
1017
+ Document[0, 19]
1018
+ Paragraph[0, 19]
1019
+ Link[0, 19] textOpen:[0, 1, "["] text:[1, 12, "[^footnote]"] textClose:[12, 13, "]"] linkOpen:[13, 14, "("] url:[14, 18, "/url"] pageRef:[14, 18, "/url"] linkClose:[18, 19, ")"]
1020
+ Text[1, 12] chars:[1, 12, "[^foo … note]"]
1021
+ ````````````````````````````````
1022
+
1023
+
1024
+ ```````````````````````````````` example Footnotes - In Links: 2
1025
+ [[^footnote]](/url)
1026
+
1027
+ [^footnote]: test footnote
1028
+ .
1029
+ <p>[<sup id="fnref-1"><a class="footnote-ref" href="#fn-1">1</a></sup>](/url)</p>
1030
+ <div class="footnotes">
1031
+ <hr />
1032
+ <ol>
1033
+ <li id="fn-1">
1034
+ <p>test footnote</p>
1035
+ <a href="#fnref-1" class="footnote-backref">↩</a>
1036
+ </li>
1037
+ </ol>
1038
+ </div>
1039
+ .
1040
+ Document[0, 51]
1041
+ Paragraph[0, 20] isTrailingBlankLine
1042
+ Text[0, 1] chars:[0, 1, "["]
1043
+ Footnote[1, 12] ordinal: 1 textOpen:[1, 3, "[^"] text:[3, 11, "footnote"] textClose:[11, 12, "]"]
1044
+ Text[3, 11] chars:[3, 11, "footnote"]
1045
+ Text[12, 19] chars:[12, 19, "](/url)"]
1046
+ FootnoteBlock[25, 51] ordinal: 1 open:[25, 27] text:[27, 35] close:[35, 37] footnote:[38, 51]
1047
+ Paragraph[38, 51]
1048
+ Text[38, 51] chars:[38, 51, "test … tnote"]
1049
+ ````````````````````````````````
1050
+
1051
+
1052
+ ```````````````````````````````` example(Footnotes - In Links: 3) options(link-text-priority)
1053
+ [[^footnote]](/url)
1054
+ .
1055
+ <p><a href="/url">[^footnote]</a></p>
1056
+ .
1057
+ Document[0, 19]
1058
+ Paragraph[0, 19]
1059
+ Link[0, 19] textOpen:[0, 1, "["] text:[1, 12, "[^footnote]"] textClose:[12, 13, "]"] linkOpen:[13, 14, "("] url:[14, 18, "/url"] pageRef:[14, 18, "/url"] linkClose:[18, 19, ")"]
1060
+ Text[1, 12] chars:[1, 12, "[^foo … note]"]
1061
+ ````````````````````````````````
1062
+
1063
+
1064
+ ```````````````````````````````` example(Footnotes - In Links: 4) options(link-text-priority)
1065
+ [[^footnote]](/url)
1066
+
1067
+ [^footnote]: test footnote
1068
+ .
1069
+ <p><a href="/url">[^footnote]</a></p>
1070
+ <div class="footnotes">
1071
+ <hr />
1072
+ <ol>
1073
+ <li id="fn-1">
1074
+ <p>test footnote</p>
1075
+ <a href="#fnref-1" class="footnote-backref">↩</a>
1076
+ </li>
1077
+ </ol>
1078
+ </div>
1079
+ .
1080
+ Document[0, 51]
1081
+ Paragraph[0, 20] isTrailingBlankLine
1082
+ Link[0, 19] textOpen:[0, 1, "["] text:[1, 12, "[^footnote]"] textClose:[12, 13, "]"] linkOpen:[13, 14, "("] url:[14, 18, "/url"] pageRef:[14, 18, "/url"] linkClose:[18, 19, ")"]
1083
+ Text[1, 12] chars:[1, 12, "[^foo … note]"]
1084
+ FootnoteBlock[25, 51] ordinal: 1 open:[25, 27] text:[27, 35] close:[35, 37] footnote:[38, 51]
1085
+ Paragraph[38, 51]
1086
+ Text[38, 51] chars:[38, 51, "test … tnote"]
1087
+ ````````````````````````````````
1088
+
1089
+
1090
+ defined footnote in link refs have priority
1091
+
1092
+ ```````````````````````````````` example Footnotes - In Links: 5
1093
+ [[^footnote]][ref]
1094
+
1095
+ [ref]: /url
1096
+ .
1097
+ <p><a href="/url">[^footnote]</a></p>
1098
+ .
1099
+ Document[0, 35]
1100
+ Paragraph[0, 19] isTrailingBlankLine
1101
+ LinkRef[0, 18] textOpen:[0, 1, "["] text:[1, 12, "[^footnote]"] textClose:[12, 13, "]"] referenceOpen:[13, 14, "["] reference:[14, 17, "ref"] referenceClose:[17, 18, "]"]
1102
+ Text[1, 12] chars:[1, 12, "[^foo … note]"]
1103
+ Reference[24, 35] refOpen:[24, 25, "["] ref:[25, 28, "ref"] refClose:[28, 30, "]:"] url:[31, 35, "/url"]
1104
+ ````````````````````````````````
1105
+
1106
+
1107
+ ```````````````````````````````` example Footnotes - In Links: 6
1108
+ [[^footnote]][ref]
1109
+
1110
+ [ref]: /url
1111
+
1112
+ [^footnote]: test footnote
1113
+ .
1114
+ <p>[<sup id="fnref-1"><a class="footnote-ref" href="#fn-1">1</a></sup>]<a href="/url">ref</a></p>
1115
+ <div class="footnotes">
1116
+ <hr />
1117
+ <ol>
1118
+ <li id="fn-1">
1119
+ <p>test footnote</p>
1120
+ <a href="#fnref-1" class="footnote-backref">↩</a>
1121
+ </li>
1122
+ </ol>
1123
+ </div>
1124
+ .
1125
+ Document[0, 67]
1126
+ Paragraph[0, 19] isTrailingBlankLine
1127
+ Text[0, 1] chars:[0, 1, "["]
1128
+ Footnote[1, 12] ordinal: 1 textOpen:[1, 3, "[^"] text:[3, 11, "footnote"] textClose:[11, 12, "]"]
1129
+ Text[3, 11] chars:[3, 11, "footnote"]
1130
+ Text[12, 13] chars:[12, 13, "]"]
1131
+ LinkRef[13, 18] referenceOpen:[13, 14, "["] reference:[14, 17, "ref"] referenceClose:[17, 18, "]"]
1132
+ Text[14, 17] chars:[14, 17, "ref"]
1133
+ Reference[24, 35] refOpen:[24, 25, "["] ref:[25, 28, "ref"] refClose:[28, 30, "]:"] url:[31, 35, "/url"]
1134
+ FootnoteBlock[41, 67] ordinal: 1 open:[41, 43] text:[43, 51] close:[51, 53] footnote:[54, 67]
1135
+ Paragraph[54, 67]
1136
+ Text[54, 67] chars:[54, 67, "test … tnote"]
1137
+ ````````````````````````````````
1138
+
1139
+
1140
+ ```````````````````````````````` example(Footnotes - In Links: 7) options(link-text-priority)
1141
+ [[^footnote]][ref]
1142
+
1143
+ [ref]: /url
1144
+ .
1145
+ <p><a href="/url">[^footnote]</a></p>
1146
+ .
1147
+ Document[0, 35]
1148
+ Paragraph[0, 19] isTrailingBlankLine
1149
+ LinkRef[0, 18] textOpen:[0, 1, "["] text:[1, 12, "[^footnote]"] textClose:[12, 13, "]"] referenceOpen:[13, 14, "["] reference:[14, 17, "ref"] referenceClose:[17, 18, "]"]
1150
+ Text[1, 12] chars:[1, 12, "[^foo … note]"]
1151
+ Reference[24, 35] refOpen:[24, 25, "["] ref:[25, 28, "ref"] refClose:[28, 30, "]:"] url:[31, 35, "/url"]
1152
+ ````````````````````````````````
1153
+
1154
+
1155
+ ```````````````````````````````` example(Footnotes - In Links: 8) options(link-text-priority)
1156
+ [[^footnote]][ref]
1157
+
1158
+ [ref]: /url
1159
+
1160
+ [^footnote]: test footnote
1161
+ .
1162
+ <p>[<sup id="fnref-1"><a class="footnote-ref" href="#fn-1">1</a></sup>]<a href="/url">ref</a></p>
1163
+ <div class="footnotes">
1164
+ <hr />
1165
+ <ol>
1166
+ <li id="fn-1">
1167
+ <p>test footnote</p>
1168
+ <a href="#fnref-1" class="footnote-backref">↩</a>
1169
+ </li>
1170
+ </ol>
1171
+ </div>
1172
+ .
1173
+ Document[0, 67]
1174
+ Paragraph[0, 19] isTrailingBlankLine
1175
+ Text[0, 1] chars:[0, 1, "["]
1176
+ Footnote[1, 12] ordinal: 1 textOpen:[1, 3, "[^"] text:[3, 11, "footnote"] textClose:[11, 12, "]"]
1177
+ Text[3, 11] chars:[3, 11, "footnote"]
1178
+ Text[12, 13] chars:[12, 13, "]"]
1179
+ LinkRef[13, 18] referenceOpen:[13, 14, "["] reference:[14, 17, "ref"] referenceClose:[17, 18, "]"]
1180
+ Text[14, 17] chars:[14, 17, "ref"]
1181
+ Reference[24, 35] refOpen:[24, 25, "["] ref:[25, 28, "ref"] refClose:[28, 30, "]:"] url:[31, 35, "/url"]
1182
+ FootnoteBlock[41, 67] ordinal: 1 open:[41, 43] text:[43, 51] close:[51, 53] footnote:[54, 67]
1183
+ Paragraph[54, 67]
1184
+ Text[54, 67] chars:[54, 67, "test … tnote"]
1185
+ ````````````````````````````````
1186
+
1187
+
1009
1188
## Source Position Attribute
1010
1189
1011
1190
```````````````````````````````` example(Source Position Attribute: 1) options(src-pos)
0 commit comments