pandoc/test/command/7930.md
2022-02-19 11:55:46 -08:00

2 KiB

% 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" , "" )
            ]
        ]
    ]
]