mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-22 16:14:17 +02:00
init
This commit is contained in:
commit
9da65bd2da
1 changed files with 28 additions and 0 deletions
28
main.go
Normal file
28
main.go
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/magicnumbers/gold"
|
||||
bf "gopkg.in/russross/blackfriday.v2"
|
||||
)
|
||||
|
||||
const tmd = `
|
||||
# Test
|
||||
|
||||
This is a test yo.
|
||||
|
||||
## Dude!
|
||||
|
||||
* one
|
||||
* two
|
||||
* three
|
||||
|
||||
[yoda](http://flame.com)
|
||||
`
|
||||
|
||||
func main() {
|
||||
r := gold.TermRenderer{}
|
||||
out := bf.Run([]byte(tmd), bf.WithRenderer(&r))
|
||||
fmt.Println(string(out))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue