Skip to content

Commit

Permalink
update title script
Browse files Browse the repository at this point in the history
  • Loading branch information
wizicer committed Sep 18, 2024
1 parent 62f70ea commit 6b73512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/zkweekly/bin/gen_markdown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sedi=(-i) && [ "$(uname)" == "Darwin" ] && sedi=(-i '')
sed "${sedi[@]}" -E 's/【([^】]+)】/**【\1】**/g' "$output"

# 将“一周ZKP新闻 - 2024.8.7”前面加上##,并去掉
sed "${sedi[@]}" -E 's/\*\*一周ZKP新闻 - ([0-9.]+)\*\*/## 一周ZKP新闻 - \1/g' "$output"
sed "${sedi[@]}" -E 's/\*\*一周ZKP新闻 - ([0-9.]+)\*\*/### \1/g' "$output"

# 使用 awk 将空行之后的行开头加上 - 并将其后面的行连接成一行
awk '
Expand Down
2 changes: 1 addition & 1 deletion docs/zkweekly/bin/gen_twitter.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ cp "$input" "$output"
sed "${sedi[@]}" -e 's/^- /- \\\+ /g' "$output"
sed "${sedi[@]}" -E 's/^ \[(.*)\]\((.*)\)/\n - \n - \\\- \1: \2/g' "$output"

sed "${sedi[@]}" -E 's/## 一周ZKP新闻 - ([0-9.]+)/## 🚀 zkWeekly - \1\n<br\/>\n/g' "$output"
sed "${sedi[@]}" -E 's/### ([0-9.]+)/## 🚀 zkWeekly - \1\n<br\/>\n/g' "$output"

0 comments on commit 6b73512

Please sign in to comment.