mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
release.py: Prettify foo-cmd in ReST changelog
This commit is contained in:
parent
dcc63e9824
commit
4f3a52a26f
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue