Files
pandoc/test/command/12001.md
T
John MacFarlaneandClaude Opus 5.5 dd7fc4a0be Reset sourcepos when parsing footnotes and grid table cells.
Extends the fix for #11888 (c8c68ec0a) to footnote definitions in
the Markdown reader and to grid table cells.  Otherwise, when one of
these ends a file, relative paths in it can be rebased against the
next file on the command line.

Closes #12001.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 20:14:24 -07:00

1.7 KiB

% pandoc -f markdown+rebase_relative_paths -t native command/12001/note/doc.md command/12001/next/doc.md command/12001/grid/doc.md command/12001/next/doc.md
^D
[ Para
    [ Str "Text"
    , Note
        [ Para
            [ Image
                ( "" , [] , [] )
                [ Str "C" ]
                ( "command/12001/note/img/note.png" , "" )
            , Space
            , Link
                ( "" , [] , [] )
                [ Str "doc" ]
                ( "command/12001/note/files/doc.pdf" , "" )
            ]
        ]
    ]
, Para
    [ Str "Next"
    , Space
    , Image
        ( "" , [] , [] )
        [ Str "N" ]
        ( "command/12001/next/img/next.png" , "" )
    ]
, Table
    ( "" , [] , [] )
    (Caption Nothing [])
    [ ( AlignDefault , ColWidth 0.3194444444444444 ) ]
    (TableHead ( "" , [] , [] ) [])
    [ TableBody
        ( "" , [] , [] )
        (RowHeadColumns 0)
        []
        [ Row
            ( "" , [] , [] )
            [ Cell
                ( "" , [] , [] )
                AlignDefault
                (RowSpan 1)
                (ColSpan 1)
                [ Figure
                    ( "" , [] , [] )
                    (Caption Nothing [ Plain [ Str "C" ] ])
                    [ Plain
                        [ Image
                            ( "" , [] , [] )
                            [ Str "C" ]
                            ( "command/12001/grid/img/grid.png" , "" )
                        ]
                    ]
                ]
            ]
        ]
    ]
    (TableFoot ( "" , [] , [] ) [])
, Para
    [ Str "Next"
    , Space
    , Image
        ( "" , [] , [] )
        [ Str "N" ]
        ( "command/12001/next/img/next.png" , "" )
    ]
]