mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Cap maximum sub-section name length
This commit is contained in:
parent
0b905e1b17
commit
779ba791f9
2 changed files with 7 additions and 1 deletions
|
|
@ -35,7 +35,8 @@ RST_REPLACEMENTS: list[Replacement] = [
|
||||||
MD_REPLACEMENTS: list[Replacement] = [
|
MD_REPLACEMENTS: list[Replacement] = [
|
||||||
(r"^ (- )", r"\1"), # remove indent from top-level bullet points
|
(r"^ (- )", r"\1"), # remove indent from top-level bullet points
|
||||||
(r"^ +( - )", r"\1"), # adjust nested bullet points indent
|
(r"^ +( - )", r"\1"), # adjust nested bullet points indent
|
||||||
(r"^(\w[^\n]+):(?=\n\n[^ ])", r"### \1"), # make sections 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"^- `/?plugins/(\w+)`:?", r"- Plugin **`\1`**:"), # highlight plugins
|
(r"^- `/?plugins/(\w+)`:?", r"- Plugin **`\1`**:"), # highlight plugins
|
||||||
(r"^- `(\w+)-cmd`:?", r"- Command **`\1`**:"), # highlight commands
|
(r"^- `(\w+)-cmd`:?", r"- Command **`\1`**:"), # highlight commands
|
||||||
(r"### [^\n]+\n+(?=### )", ""), # remove empty sections
|
(r"### [^\n]+\n+(?=### )", ""), # remove empty sections
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,9 @@ Bug fixes:
|
||||||
* First
|
* First
|
||||||
* Second
|
* Second
|
||||||
|
|
||||||
|
Section naaaaaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmmmmmeeeeeeeeeeeeeee with over 80
|
||||||
|
characters:
|
||||||
|
|
||||||
Empty section:
|
Empty section:
|
||||||
|
|
||||||
Other changes:
|
Other changes:
|
||||||
|
|
@ -85,6 +88,8 @@ You can do something with this command:
|
||||||
- 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
|
||||||
|
|
||||||
|
**Section naaaaaaaaaaaaaaaaaaaaaaaammmmmmmmmmmmmmmmeeeeeeeeeeeeeee with over 80 characters**
|
||||||
|
|
||||||
### 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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue