mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
15 lines
497 B
Sed
15 lines
497 B
Sed
|
#
|
||
|
# 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
|
||
|
#
|
||
|
# Wrap docproc directives in para and code blocks.
|
||
|
#
|
||
|
s%^\(!.*\)$%<para><code>DOCPROC: \1</code></para>%
|