Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
4f8964d8
Commit
4f8964d8
authored
Dec 04, 2020
by
Marc Cornellà
Browse files
fix(changelog): fix highlight of codeblocks in subject
parent
1aa2b18e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/changelog.sh
View file @
4f8964d8
...
...
@@ -248,7 +248,7 @@ function display-release {
case
"
$output
"
in
raw
)
printf
"
$subject
"
;;
# In text mode, highlight (#<issue>) and dim text between `backticks`
text
)
sed
-E
$'s|#([0-9]+)|
\e
[32m#
\\
1
\e
[0m|g;s|`(
.
+)`|`
\e
[2m
\\
1
\e
[0m`|g'
<<<
"
$subject
"
;;
text
)
sed
-E
$'s|#([0-9]+)|
\e
[32m#
\\
1
\e
[0m|g;s|`(
[^`]
+)`|`
\e
[2m
\\
1
\e
[0m`|g'
<<<
"
$subject
"
;;
# In markdown mode, link to (#<issue>) issues
md
)
sed
-E
's|#([0-9]+)|[#\1](https://github.com/ohmyzsh/ohmyzsh/issues/\1)|g'
<<<
"
$subject
"
;;
esac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment