text-crossrefs: Document an expected error with sample-with-options.md

This commit is contained in:
Bastien Dumont
2025-12-22 10:19:12 +01:00
parent 55bc25bf31
commit c038b8d963
5 changed files with 16 additions and 0 deletions

View File

@ -52,6 +52,10 @@ Here are some precisions.[^2]
[And this one is labelized at the end.]{#lblatend refanchor=end}
<!-- Because of tcrf-default-reftype: note, the following line produces
a reference to a void note label (since lblatend is not attached to a note)
in formats that do not support the “line” reference type.
This will make the Typst output with #ref uncompilable. -->
What if you want to refer to the last line, i.e. [lblatend]{.tcrf reftype=line}?
See [doubledlbl-beg->doubledlbl-end]{.tcrf reftype="page"}.

View File

@ -444,6 +444,9 @@
, Span ( "lblatend" , [] , [] ) []
]
]
, RawBlock
(Format "html")
"<!-- Because of tcrf-default-reftype: note, the following line produces\na reference to a void note label (since lblatend is not attached to a note)\nin formats that do not support the \8220line\8221 reference type.\nThis will make the Typst output with #ref uncompilable. -->"
, Para
[ Str "What"
, Space

View File

@ -441,6 +441,9 @@
, Span ( "lblatend" , [] , [] ) []
]
]
, RawBlock
(Format "html")
"<!-- Because of tcrf-default-reftype: note, the following line produces\na reference to a void note label (since lblatend is not attached to a note)\nin formats that do not support the \8220line\8221 reference type.\nThis will make the Typst output with #ref uncompilable. -->"
, Para
[ Str "What"
, Space

View File

@ -446,6 +446,9 @@
, Span ( "lblatend" , [] , [] ) []
]
]
, RawBlock
(Format "html")
"<!-- Because of tcrf-default-reftype: note, the following line produces\na reference to a void note label (since lblatend is not attached to a note)\nin formats that do not support the \8220line\8221 reference type.\nThis will make the Typst output with #ref uncompilable. -->"
, Para
[ Str "What"
, Space

View File

@ -446,6 +446,9 @@
, Span ( "lblatend" , [] , [] ) []
]
]
, RawBlock
(Format "html")
"<!-- Because of tcrf-default-reftype: note, the following line produces\na reference to a void note label (since lblatend is not attached to a note)\nin formats that do not support the \8220line\8221 reference type.\nThis will make the Typst output with #ref uncompilable. -->"
, Para
[ Str "What"
, Space