We have a need to convert docx to gfm.
pandoc --to=gfm -f docx+styles --output=rtb.md --extract-media=. --wrap=none 'rtb.docx'
So now we have html div that wraps our content. Let's say I want to transform this:
<div custom-style="Internal Heading">
Scope
</div>
Into:
## Scope
How can it be done? I tried to setup a Lua filter but not having success to have it output "##" along with the div content.