We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfd452a + e3c6f42 commit 7f03fbaCopy full SHA for 7f03fba
tools/gh_lists.py
@@ -53,6 +53,11 @@ def backtick_repl(matchobj):
53
else:
54
post = matchobj.group(2)
55
return '``' + matchobj.group(1) + '``' + post
56
+
57
+ def asterisk_repl(matchobj):
58
+ """repl to un-escape asterisks in code blocks"""
59
+ code = matchobj.group(1).replace("\\*", "*")
60
+ return '``' + code + '``'
61
62
for issue in items:
63
msg = "* `#{0} <{1}>`__: {2}"
@@ -69,6 +74,8 @@ def backtick_repl(matchobj):
69
74
70
75
# sanitize asterisks
71
76
title = title.replace('*', '\\*')
77
+ # except those in code blocks
78
+ title = re.sub("``(.*?)``", asterisk_repl, title)
72
79
73
80
if len(title) > 60:
81
remainder = re.sub("\\s.*$", "...", title[60:])
0 commit comments