2 # Pandoc doesn't grok <function> or <structname>, so convert them
5 # Use the following escapes to pass through pandoc:
10 s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1()$bq%g
11 s%<function>\([^<(]\+\)</function>%:c:func:$bq\1()$bq%g
12 s%<structname>struct *\([^<]\+\)</structname>%:c:type:$bqstruct \1 $lt\1$gt$bq%g
13 s%struct <structname>\([^<]\+\)</structname>%:c:type:$bqstruct \1 $lt\1$gt$bq%g
14 s%<structname>\([^<]\+\)</structname>%:c:type:$bqstruct \1 $lt\1$gt$bq%g
16 # Wrap docproc directives in para and code blocks.
18 s%^\(!.*\)$%<para><code>DOCPROC: \1</code></para>%