mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
Fix release formatting for new versions of pandoc
Ubuntu version in GitHub Actions has recently been upgraded to 24.04: https://github.com/actions/runner-images/issues/10636) This meant that pandoc was upgraded and it changed the way markdown is formatted by default.
This commit is contained in:
parent
5fc92c98da
commit
0a53a930aa
2 changed files with 5 additions and 6 deletions
|
|
@ -135,8 +135,7 @@ def create_rst_replacements() -> list[Replacement]:
|
||||||
|
|
||||||
|
|
||||||
MD_REPLACEMENTS: list[Replacement] = [
|
MD_REPLACEMENTS: list[Replacement] = [
|
||||||
(r"^ (- )", r"\1"), # remove indent from top-level bullet points
|
(r"<span[^>]+>([^<]+)</span>", r"_\1"), # remove a couple of wild span refs
|
||||||
(r"^ +( - )", r"\1"), # adjust nested bullet points indent
|
|
||||||
(r"^(\w[^\n]{,80}):(?=\n\n[^ ])", r"### \1"), # format section headers
|
(r"^(\w[^\n]{,80}):(?=\n\n[^ ])", r"### \1"), # format section headers
|
||||||
(r"^(\w[^\n]{81,}):(?=\n\n[^ ])", r"**\1**"), # and bolden too long ones
|
(r"^(\w[^\n]{81,}):(?=\n\n[^ ])", r"**\1**"), # and bolden too long ones
|
||||||
(r"### [^\n]+\n+(?=### )", ""), # remove empty sections
|
(r"### [^\n]+\n+(?=### )", ""), # remove empty sections
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ Bug fixes:
|
||||||
def md_changelog():
|
def md_changelog():
|
||||||
return r"""### New features
|
return r"""### New features
|
||||||
|
|
||||||
- [Substitute Plugin](https://beets.readthedocs.io/en/stable/plugins/substitute.html): Some substitute multi-line change. :bug: (\#5467)
|
- [Substitute Plugin](https://beets.readthedocs.io/en/stable/plugins/substitute.html): Some substitute multi-line change. :bug: (#5467)
|
||||||
- [list](https://beets.readthedocs.io/en/stable/reference/cli.html#list-cmd) Update.
|
- [list](https://beets.readthedocs.io/en/stable/reference/cli.html#list-cmd) Update.
|
||||||
|
|
||||||
You can do something with this command:
|
You can do something with this command:
|
||||||
|
|
@ -82,9 +82,9 @@ You can do something with this command:
|
||||||
- Another fix with its own bullet points using correct indentation:
|
- Another fix with its own bullet points using correct indentation:
|
||||||
- First
|
- First
|
||||||
- Second
|
- Second
|
||||||
- Some fix thanks to @username. :bug: (\#5467)
|
- Some fix thanks to @username. :bug: (#5467)
|
||||||
- Some fix that mentions user @username.
|
- Some fix that mentions user @username.
|
||||||
- Some fix that refers to an issue. :bug: (\#5467)
|
- Some fix that refers to an issue. :bug: (#5467)
|
||||||
- Some fix with its own bullet points using incorrect indentation:
|
- Some fix with its own bullet points using incorrect indentation:
|
||||||
- First nested bullet point with some text that wraps to the next line
|
- First nested bullet point with some text that wraps to the next line
|
||||||
- Second nested bullet point
|
- Second nested bullet point
|
||||||
|
|
@ -93,7 +93,7 @@ You can do something with this command:
|
||||||
|
|
||||||
### Other changes
|
### Other changes
|
||||||
|
|
||||||
- Changed `bitesize` label to `good first issue`. Our [contribute](https://github.com/beetbox/beets/contribute) page is now automatically populated with these issues. :bug: (\#4855)
|
- Changed `bitesize` label to `good first issue`. Our [contribute](https://github.com/beetbox/beets/contribute) page is now automatically populated with these issues. :bug: (#4855)
|
||||||
|
|
||||||
# 2.1.0 (November 22, 2024)
|
# 2.1.0 (November 22, 2024)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue