summaryrefslogtreecommitdiff
path: root/Documentation/sphinx/convert_template.sed
blob: fbf3b2828544553992b1bd0f4eb4a8537a4f9234 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# 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>%:ref:$bqstruct \1$bq%g
s%<structname>\([^<]\+\)</structname>%:ref:$bqstruct \1$bq%g
#
# If we put paragraph markers between docproc directives hopefully pandoc
# won't mess with them.
#
s%^\(!.*\)$%<para>\1</para>%