We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given the minimal DOCX working example that has
pandoc --from docx --to markdown caption.docx produces
pandoc --from docx --to markdown caption.docx
----------------------------------------------------------------------- Foo Bar ----------------------------------- ----------------------------------- 1 2 ----------------------------------------------------------------------- : Table Caption here.
Note the Table after : that is different with table_captions:
Table
:
table_captions
A caption is a paragraph beginning with the string Table: (or table: or just :), which will be stripped off.
The expected output is
----------------------------------------------------------------------- Foo Bar ----------------------------------- ----------------------------------- 1 2 ----------------------------------------------------------------------- : Caption here.
When inspecting the XML generated by Pandoc and Microsoft Office Word, they are very different.
Pandoc XML:
<w:p> <w:pPr> <w:pStyle w:val="TableCaption"/> </w:pPr> <w:r> <w:t xml:space="preserve">Caption here.</w:t> </w:r> </w:p>
Microsoft Office Word XML:
<w:p w14:paraId="5AD17E4F" w14:textId="3DEE5416" w:rsidR="00C10DAE" w:rsidRDefault="00C10DAE" w:rsidP="00C10DAE"> <w:pPr> <w:pStyle w:val="Caption"/> <w:keepNext/> </w:pPr> <w:r> <w:t xml:space="preserve">Table </w:t> </w:r> <w:fldSimple w:instr=" SEQ Table \* ARABIC "> <w:r> <w:rPr> <w:noProof/> </w:rPr> <w:t>1</w:t> </w:r> </w:fldSimple> <w:r> <w:t xml:space="preserve"> </w:t> </w:r> <w:r w:rsidR="00D62831"> <w:t>C</w:t> </w:r> <w:r> <w:t>aption here.</w:t> </w:r> </w:p>
Environment:
pandoc 3.1.5 Features: +server +lua Scripting engine: Lua 5.4
The text was updated successfully, but these errors were encountered:
We should presumably strip off everything before <w:fldSimple w:instr=" SEQ Table ... in the caption.
<w:fldSimple w:instr=" SEQ Table ...
Sorry, something went wrong.
068fce4
No branches or pull requests
Given the minimal DOCX working example that has
pandoc --from docx --to markdown caption.docx
producesNote the
Table
after:
that is different withtable_captions
:The expected output is
When inspecting the XML generated by Pandoc and Microsoft Office Word, they are very different.
Pandoc XML:
Microsoft Office Word XML:
Environment:
The text was updated successfully, but these errors were encountered: