···22# Pandoc doesn't grok <function> or <structname>, so convert them33# ahead of time.44#55-# Use "$bq" instead of "`" so that pandoc won't mess with it.55+# Use the following escapes to pass through pandoc:66+# $bq = "`"77+# $lt = "<"88+# $gt = ">"69#710s%<function>\([^<(]\+\)()</function>%:c:func:$bq\1()$bq%g811s%<function>\([^<(]\+\)</function>%:c:func:$bq\1()$bq%g99-s%<structname>struct *\([^<]\+\)</structname>%:c:type:$bq\1$bq%g1010-s%<structname>\([^<]\+\)</structname>%:c:type:$bq\1$bq%g1212+s%<structname>struct *\([^<]\+\)</structname>%:c:type:$bqstruct \1 $lt\1$gt$bq%g1313+s%struct <structname>\([^<]\+\)</structname>%:c:type:$bqstruct \1 $lt\1$gt$bq%g1414+s%<structname>\([^<]\+\)</structname>%:c:type:$bqstruct \1 $lt\1$gt$bq%g1115#1216# Wrap docproc directives in para and code blocks.1317#
+7-3
Documentation/sphinx/post_convert.sed
···11#22-# pandoc thinks that both "_" needs to be escaped. Remove the extra33-# backslashes. Also put in proper backquotes now that pandoc won't quote44-# them.22+# Unescape.53#64s/$bq/`/g55+s/$lt/</g66+s/$gt/>/g77+#88+# pandoc thinks that both "_" needs to be escaped. Remove the extra99+# backslashes.1010+#711s/\\_/_/g812#913# Unwrap docproc directives.