github
70 of 116 new or added lines in 5 files covered. (60.34%)
4 existing lines in 2 files now uncovered.1072 of 1407 relevant lines covered (76.19%)
134.92 hits per line
1 |
package main
|
|
2 |
|
|
3 |
import (
|
|
4 |
"fmt"
|
|
5 |
|
|
6 |
"github.com/charmbracelet/glamour"
|
|
7 |
) |
|
8 |
|
|
9 |
func main() {
|
× |
10 |
in := `# Hello World
|
× |
11 |
|
× |
12 |
This is a simple example of Markdown rendering with Glamour! |
× |
13 |
Check out the [other examples](https://github.com/charmbracelet/glamour/tree/master/examples) too. |
× |
14 |
|
× |
NEW
|
**just bold text** |
× |
NEW
|
|
× |
NEW
|
_just italic text_ |
× |
NEW
|
|
× |
NEW
|
**[bold with url within](https://www.example.com)** |
× |
NEW
|
|
× |
NEW
|
[normal](https://www.example.com) |
× |
NEW
|
|
× |
NEW
|
|
× |
NEW
|
[url with **bold** within](https://www.example.com) |
× |
NEW
|
|
× |
NEW
|
[url with _italic_ within](https://www.example.com) |
× |
NEW
|
|
× |
NEW
|
[**entire url text is bold**](https://www.example.com) |
× |
NEW
|
|
× |
NEW
|
[_entire url text is italic_](https://www.example.com) |
× |
NEW
|
|
× |
NEW
|
_URL_ |
× |
NEW
|
|
× |
34 |
Bye! |
× |
35 |
`
|
× |
36 |
|
× |
37 |
out, _ := glamour.Render(in, "dark")
|
× |
38 |
fmt.Print(out) |
× |
39 |
} |
× |