diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-02-19 11:45:35 -0800 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-02-19 11:55:46 -0800 |
| commit | 6fe8014a2cc1d732dd11c0fc386d7c8449048c90 (patch) | |
| tree | d7a83366ca74976d2f4690f570298339fcf2024d /test/command | |
| parent | a3117bc1420d8f3f8db39957c62bc3af8a3aef1f (diff) | |
LaTeX reader: Handle `\label` and `\ref` for footnotes.
Closes #7930.
Diffstat (limited to 'test/command')
| -rw-r--r-- | test/command/7930.md | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/test/command/7930.md b/test/command/7930.md new file mode 100644 index 000000000..5e3625419 --- /dev/null +++ b/test/command/7930.md @@ -0,0 +1,98 @@ +``` +% pandoc -f latex -t native +We discuss foobar in notes \ref{note:X} and \ref{note:Y}. + +Foo.\footnote{\label{note:X}A note. See also note~\ref{note:Y}.} + +Bar.\footnote{\label{note:Y}Another note. See also +note~\ref{note:X}} +^D +[ Para + [ Str "We" + , Space + , Str "discuss" + , Space + , Str "foobar" + , Space + , Str "in" + , Space + , Str "notes" + , Space + , Link + ( "" + , [] + , [ ( "reference-type" , "ref" ) + , ( "reference" , "note:X" ) + ] + ) + [ Str "1" ] + ( "#note:X" , "" ) + , Space + , Str "and" + , Space + , Link + ( "" + , [] + , [ ( "reference-type" , "ref" ) + , ( "reference" , "note:Y" ) + ] + ) + [ Str "2" ] + ( "#note:Y" , "" ) + , Str "." + ] +, Para + [ Str "Foo." + , Note + [ Para + [ Span ( "note:X" , [] , [ ( "label" , "note:X" ) ] ) [] + , Str "A" + , Space + , Str "note." + , Space + , Str "See" + , Space + , Str "also" + , Space + , Str "note\160" + , Link + ( "" + , [] + , [ ( "reference-type" , "ref" ) + , ( "reference" , "note:Y" ) + ] + ) + [ Str "2" ] + ( "#note:Y" , "" ) + , Str "." + ] + ] + ] +, Para + [ Str "Bar." + , Note + [ Para + [ Span ( "note:Y" , [] , [ ( "label" , "note:Y" ) ] ) [] + , Str "Another" + , Space + , Str "note." + , Space + , Str "See" + , Space + , Str "also" + , SoftBreak + , Str "note\160" + , Link + ( "" + , [] + , [ ( "reference-type" , "ref" ) + , ( "reference" , "note:X" ) + ] + ) + [ Str "1" ] + ( "#note:X" , "" ) + ] + ] + ] +] +``` |
