When converting a Word-Document to markdown Code Blocks (paragraphs styled with "Source Code") are converted as indented code blocks.
Is there a way to convert them as backtick code blocks?
You could use a simple lua filter.
Create a file myfilter.lua
with following code:
function CodeBlock (cb)
return pandoc.RawBlock('markdown', '```\n' .. cb.text .. '\n```\n')
end
And add the argument --lua-filter myfilter.lua
to your pandoc command:
pandoc filename.docx -f docx -t markdown -o outputfile.md --lua-filter myfilter.lua