Skip to content

Instantly share code, notes, and snippets.

@baptiste
Last active April 12, 2019 20:47
Show Gist options
  • Save baptiste/d8b0f1819bf11061bb1c5478b28b7c26 to your computer and use it in GitHub Desktop.
Save baptiste/d8b0f1819bf11061bb1c5478b28b7c26 to your computer and use it in GitHub Desktop.
pandoc --lua-filter filter.lua test.md -o test.docx
-- we use preloaded text to get a UTF-8 aware 'upper' function
local text = require('text')
function RawInline(el)
if el.format == 'tex' then
newcode = el.text:gsub('\\code', '')
return pandoc.SmallCaps(newcode)
end
end
title author date
test
baptiste
4/13/2019

title

This is \prolang{R}, this is \code{xtrfm()}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment