Skip to content

Commit

Permalink
docs: 更新彩色样式的使用例子
Browse files Browse the repository at this point in the history
  • Loading branch information
electricbubble committed Sep 10, 2022
1 parent 49e49ef commit 98a6662
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ func main() {
{ // 发送卡片消息, 可同时设置 3种语言环境
mdZhCn := `**title**
~~DEL~~
🙈 看不见的人 👉` + md.MentionByOpenID("ou_c99c5f35d542efc7ee492afe11af19ef")
🙈 看不见的人 👉` + md.MentionByOpenID("ou_c99c5f35d542efc7ee492afe11af19ef") + "\n" +
md.ColorGreen("这是一个绿色文本") + "\n" +
md.ColorRed("这是一个红色文本") + "\n" +
md.ColorGrey("这是一个灰色文本 ")

mdEnUs := `~~empty~~`

Expand Down
5 changes: 4 additions & 1 deletion examples/main.go → _examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ func main() {
{ // 发送卡片消息, 可同时设置 3种语言环境
mdZhCn := `**title**
~~DEL~~
🙈 看不见的人 👉` + md.MentionByOpenID("ou_c99c5f35d542efc7ee492afe11af19ef")
🙈 看不见的人 👉` + md.MentionByOpenID("ou_c99c5f35d542efc7ee492afe11af19ef") + "\n" +
md.ColorGreen("这是一个绿色文本") + "\n" +
md.ColorRed("这是一个红色文本") + "\n" +
md.ColorGrey("这是一个灰色文本 ")

mdEnUs := `~~empty~~`

Expand Down

0 comments on commit 98a6662

Please sign in to comment.