2 # Pandoc doesn't grok <function> or <structname>, so convert them
5 # Use "$bq" instead of "`" so that pandoc won't mess with it.
7 s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1$bq%g
8 s%<function>\([^<(]\+\)</function>%:c:func:$bq\1$bq%g
9 s%<structname>struct *\([^<]\+\)</structname>%:ref:$bqstruct \1$bq%g
10 s%<structname>\([^<]\+\)</structname>%:ref:$bqstruct \1$bq%g
12 # Wrap docproc directives in para and code blocks.
14 s%^\(!.*\)$%<para><code>DOCPROC: \1</code></para>%