summaryrefslogtreecommitdiff
path: root/Documentation/sphinx/convert_template.sed
blob: 0553eabeac793a714bbd242a0cce60ade5c746f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
# Pandoc doesn't grok <function> or <structname>, so convert them
# ahead of time.
#
# Use "$bq" instead of "`" so that pandoc won't mess with it.
#
s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1()$bq%g
s%<function>\([^<(]\+\)</function>%:c:func:$bq\1()$bq%g
s%<structname>struct *\([^<]\+\)</structname>%:c:type:$bq\1$bq%g
s%<structname>\([^<]\+\)</structname>%:c:type:$bq\1$bq%g
#
# Wrap docproc directives in para and code blocks.
#
s%^\(!.*\)$%<para><code>DOCPROC: \1</code></para>%