8 # pandoc thinks that both "_" needs to be escaped. Remove the extra
13 # Unwrap docproc directives.
15 s/^``DOCPROC: !E\(.*\)``$/.. kernel-doc:: \1\n :export:/
16 s/^``DOCPROC: !I\(.*\)``$/.. kernel-doc:: \1\n :internal:/
17 s/^``DOCPROC: !F\([^ ]*\) \(.*\)``$/.. kernel-doc:: \1\n :functions: \2/
18 s/^``DOCPROC: !P\([^ ]*\) \(.*\)``$/.. kernel-doc:: \1\n :doc: \2/
19 s/^``DOCPROC: \(!.*\)``$/.. WARNING: DOCPROC directive not supported: \1/
21 # Trim trailing whitespace.