diff --git a/.all-contributorsrc b/.all-contributorsrc index 9c8192b..832078e 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -36,6 +36,15 @@ "contributions": [ "code" ] + }, + { + "login": "claranceliberi", + "name": "Clarance Liberiste Ntwari", + "avatar_url": "https://avatars.githubusercontent.com/u/60586899?v=4", + "profile": "https://www.claranceliberi.me/", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, diff --git a/README.md b/README.md index dd62594..6ec5c37 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-) +[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-) [![Go Reference](https://pkg.go.dev/badge/github.com/nao1215/markdown.svg)](https://pkg.go.dev/github.com/nao1215/markdown) [![MultiPlatformUnitTest](https://github.com/nao1215/markdown/actions/workflows/unit_test.yml/badge.svg)](https://github.com/nao1215/markdown/actions/workflows/unit_test.yml) @@ -244,6 +244,7 @@ The markdown package can create red, yellow, and green status badges. RedBadge("red_badge"). YellowBadge("yellow_badge"). GreenBadge("green_badge"). + BlueBadge("blue_badge"). Build() ``` @@ -253,12 +254,14 @@ The markdown package can create red, yellow, and green status badges. ![Badge](https://img.shields.io/badge/red_badge-red) ![Badge](https://img.shields.io/badge/yellow_badge-yellow) ![Badge](https://img.shields.io/badge/green_badge-green) +![Badge](https://img.shields.io/badge/blue_badge-blue) ```` Your badge will look like this; ![Badge](https://img.shields.io/badge/red_badge-red) ![Badge](https://img.shields.io/badge/yellow_badge-yellow) ![Badge](https://img.shields.io/badge/green_badge-green) +![Badge](https://img.shields.io/badge/blue_badge-blue) ### Mermaid sequence diagram syntax @@ -749,9 +752,10 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d - - - + + + + diff --git a/badge.go b/badge.go index 8fb8948..16462ac 100644 --- a/badge.go +++ b/badge.go @@ -36,12 +36,12 @@ func (m *Markdown) GreenBadgef(format string, args ...interface{}) *Markdown { } // BlueBadge set text with blue badge format. -func (m *Markdown) blueBadge(text string) *Markdown { - m.body = append(m.body, fmt.Sprintf("![Badge](https://img.shields.io/badge/%s-blue)", text)) - return m +func (m *Markdown) BlueBadge(text string) *Markdown { + m.body = append(m.body, fmt.Sprintf("![Badge](https://img.shields.io/badge/%s-blue)", text)) + return m } // BlueBadgef set text with blue badge format. It is similar to fmt.Sprintf. func (m *Markdown) BlueBadgef(format string, args ...interface{}) *Markdown { - return m.blueBadge(fmt.Sprintf(format, args...)) + return m.BlueBadge(fmt.Sprintf(format, args...)) }
CHIKAMATSU Naohiro
CHIKAMATSU Naohiro

💻
Karthik Sundari
Karthik Sundari

💻
Avihuc
Avihuc

💻
CHIKAMATSU Naohiro
CHIKAMATSU Naohiro

💻
Karthik Sundari
Karthik Sundari

💻
Avihuc
Avihuc

💻
Clarance Liberiste Ntwari
Clarance Liberiste Ntwari

💻