Files
pandoc/test/docx/comments.native
John MacFarlane b4cf3db71f Docx reader/writer: use comment-id instead of id in AST for comments.
Using "id" causes problems in some cases, because of overlap with
the id part of pandoc attributes.

Note that the Docx writer will still interpret an "id" attribute for
legacy compatibility, so if you use markdown files that specify "id",
they should still work.
2026-09-28 09:54:47 -07:00

153 lines
3.2 KiB
Plaintext

Pandoc
Meta { unMeta = fromList [] }
[ Para
[ Str "I"
, Space
, Str "want"
, Space
, Span
( ""
, [ "comment-start" ]
, [ ( "comment-id" , "0" )
, ( "author" , "Jesse Rosenthal" )
, ( "date" , "2016-05-09T16:13:00Z" )
]
)
[ Str "I"
, Space
, Str "left"
, Space
, Str "a"
, Space
, Str "comment."
]
, Str "some"
, Space
, Str "text"
, Space
, Str "to"
, Space
, Str "have"
, Space
, Str "a"
, Space
, Str "comment"
, Space
, Span
( "" , [ "comment-end" ] , [ ( "comment-id" , "0" ) ] ) []
, Str "on"
, Space
, Str "it."
]
, Para
[ Str "This"
, Space
, Str "is"
, Space
, Span
( ""
, [ "comment-start" ]
, [ ( "comment-id" , "1" )
, ( "author" , "Jesse Rosenthal" )
, ( "date" , "2016-05-09T16:13:00Z" )
]
)
[ Str "A"
, Space
, Str "comment"
, Space
, Str "across"
, Space
, Str "paragraphs."
]
, Str "a"
, Space
, Str "new"
, Space
, Str "paragraph."
]
, Para
[ Str "And"
, Space
, Str "so"
, Span
( "" , [ "comment-end" ] , [ ( "comment-id" , "1" ) ] ) []
, Space
, Str "is"
, Space
, Str "this."
]
, Para
[ Str "One"
, Space
, Span
( ""
, [ "comment-start" ]
, [ ( "comment-id" , "2" )
, ( "author" , "Jesse Rosenthal" )
, ( "date" , "2016-05-09T16:14:00Z" )
]
)
[ Str "This"
, Space
, Str "one"
, Space
, Str "has"
, Space
, Str "multiple"
, Space
, Str "paragraphs."
, LineBreak
, Str "See?"
]
, Str "more"
, Span
( "" , [ "comment-end" ] , [ ( "comment-id" , "2" ) ] ) []
, Str "."
, Space
, Str "And"
, Space
, Str "this"
, Space
, Str "is"
, Space
, Str "one"
, Space
, Str "with"
, Space
, Str "a"
, Space
, Span
( ""
, [ "comment-start" ]
, [ ( "comment-id" , "3" )
, ( "author" , "Jesse Rosenthal" )
, ( "date" , "2016-06-22T14:35:00Z" )
]
)
[ Str "Do" , Space , Str "something." ]
, Span
( ""
, [ "comment-start" ]
, [ ( "comment-id" , "4" )
, ( "author" , "Jesse Rosenthal" )
, ( "date" , "2016-06-22T14:36:00Z" )
]
)
[ Str "Do" , Space , Str "something" , Space , Str "else." ]
, Str "comment"
, Space
, Str "in"
, Space
, Str "a"
, Space
, Str "comment"
, Span
( "" , [ "comment-end" ] , [ ( "comment-id" , "3" ) ] )
[ Span
( "" , [ "comment-end" ] , [ ( "comment-id" , "4" ) ] ) []
]
, Str "."
]
]