Update hello world example image + small copy updates

This commit is contained in:
Christian Rocha
2021-03-24 12:06:11 -04:00
parent 689f6aec7e
commit 0355040608
3 changed files with 9 additions and 9 deletions
+7 -7
View File
@@ -9,12 +9,12 @@
<a href="http://goreportcard.com/report/charmbracelet/glamour"><img src="http://goreportcard.com/badge/charmbracelet/glamour" alt="Go ReportCard"></a> <a href="http://goreportcard.com/report/charmbracelet/glamour"><img src="http://goreportcard.com/badge/charmbracelet/glamour" alt="Go ReportCard"></a>
</p> </p>
Write handsome command-line tools with *glamour*! Write handsome command-line tools with *Glamour*.
`glamour` lets you render [markdown](https://en.wikipedia.org/wiki/Markdown) `glamour` lets you render [markdown](https://en.wikipedia.org/wiki/Markdown)
documents & templates on [ANSI](https://en.wikipedia.org/wiki/ANSI_escape_code) documents & templates on [ANSI](https://en.wikipedia.org/wiki/ANSI_escape_code)
compatible terminals. You can create your own stylesheet or use one of our compatible terminals. You can create your own stylesheet or simply use one of
glamourous default themes. the stylish defaults.
## Usage ## Usage
@@ -24,8 +24,8 @@ import "github.com/charmbracelet/glamour"
in := `# Hello World in := `# Hello World
This is a simple example of glamour! This is a simple example of Markdown rendering with Glamour!
Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples). Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples) too.
Bye! Bye!
` `
@@ -34,7 +34,7 @@ out, err := glamour.Render(in, "dark")
fmt.Print(out) fmt.Print(out)
``` ```
![HelloWorld Example](https://github.com/charmbracelet/glamour/raw/master/examples/helloworld/helloworld.png) <img src="https://github.com/charmbracelet/glamour/raw/master/examples/helloworld/helloworld.png" width="600" alt="Hello World example">
### Custom Renderer ### Custom Renderer
@@ -83,5 +83,5 @@ Part of [Charm](https://charm.sh).
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a> <a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge-unrounded.jpg" width="400"></a>
Charm热爱开源! / Charm loves open source! Charm热爱开源 Charm loves open source
Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.7 KiB

After

Width:  |  Height:  |  Size: 28 KiB

+2 -2
View File
@@ -9,8 +9,8 @@ import (
func main() { func main() {
in := `# Hello World in := `# Hello World
This is a simple example of glamour! This is a simple example of Markdown rendering with Glamour!
Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples). Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples) too.
Bye! Bye!
` `