Skip to content

Commit 4d7ebf6

Browse files
cornawjakob
authored andcommitted
Add \p as an alias for \c
1 parent 00012aa commit 4d7ebf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybind11_mkdoc/mkdoc_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def process_comment(comment):
115115
param_group = r'([\[\w:,\]]+)'
116116

117117
s = result
118-
s = re.sub(r'[\\@]c\s+%s' % cpp_group, r'``\1``', s)
118+
s = re.sub(r'[\\@][cp]\s+%s' % cpp_group, r'``\1``', s)
119119
s = re.sub(r'[\\@]a\s+%s' % cpp_group, r'*\1*', s)
120120
s = re.sub(r'[\\@]e\s+%s' % cpp_group, r'*\1*', s)
121121
s = re.sub(r'[\\@]em\s+%s' % cpp_group, r'*\1*', s)

0 commit comments

Comments
 (0)