release.py: Prettify foo-cmd in ReST changelog

This commit is contained in:
Adrian Sampson 2014-09-19 11:07:40 -07:00
parent dcc63e9824
commit 4f3a52a26f

View file

@ -185,6 +185,9 @@ def changelog_as_markdown():
# Other backslashes with verbatim ranges.
rst = re.sub(r'(\s)`([^`]+)`([^_])', r'\1``\2``\3', rst)
# Command links with command names.
rst = re.sub(r':ref:`(\w+)-cmd`', r'``\1``', rst)
return rst2md(rst)