markdown test
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
test.html
|
||||||
18
.gitmodules
vendored
Normal file
18
.gitmodules
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[submodule "vendor/gopkg.in/russross/blackfriday.v2"]
|
||||||
|
path = vendor/gopkg.in/russross/blackfriday.v2
|
||||||
|
url = https://gopkg.in/russross/blackfriday.v2
|
||||||
|
[submodule "vendor/github.com/shurcooL/sanitized_anchor_name"]
|
||||||
|
path = vendor/github.com/shurcooL/sanitized_anchor_name
|
||||||
|
url = https://github.com/shurcooL/sanitized_anchor_name
|
||||||
|
[submodule "vendor/github.com/Depado/bfchroma"]
|
||||||
|
path = vendor/github.com/Depado/bfchroma
|
||||||
|
url = https://github.com/Depado/bfchroma
|
||||||
|
[submodule "vendor/github.com/alecthomas/chroma"]
|
||||||
|
path = vendor/github.com/alecthomas/chroma
|
||||||
|
url = https://github.com/alecthomas/chroma
|
||||||
|
[submodule "vendor/github.com/dlclark/regexp2"]
|
||||||
|
path = vendor/github.com/dlclark/regexp2
|
||||||
|
url = https://github.com/dlclark/regexp2
|
||||||
|
[submodule "vendor/github.com/danwakefield/fnmatch"]
|
||||||
|
path = vendor/github.com/danwakefield/fnmatch
|
||||||
|
url = https://github.com/danwakefield/fnmatch
|
||||||
19
main.go
Normal file
19
main.go
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
|
|
||||||
|
"github.com/Depado/bfchroma"
|
||||||
|
|
||||||
|
"gopkg.in/russross/blackfriday.v2"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
input, err := ioutil.ReadFile("README.md")
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
html := blackfriday.Run(input, blackfriday.WithRenderer(bfchroma.NewRenderer()))
|
||||||
|
fmt.Println(string(html))
|
||||||
|
}
|
||||||
1
vendor/github.com/Depado/bfchroma
generated
vendored
Submodule
1
vendor/github.com/Depado/bfchroma
generated
vendored
Submodule
Submodule vendor/github.com/Depado/bfchroma added at ab17b51120
1
vendor/github.com/alecthomas/chroma
generated
vendored
Submodule
1
vendor/github.com/alecthomas/chroma
generated
vendored
Submodule
Submodule vendor/github.com/alecthomas/chroma added at b5ccb8dc32
1
vendor/github.com/danwakefield/fnmatch
generated
vendored
Submodule
1
vendor/github.com/danwakefield/fnmatch
generated
vendored
Submodule
Submodule vendor/github.com/danwakefield/fnmatch added at cbb64ac3d9
1
vendor/github.com/dlclark/regexp2
generated
vendored
Submodule
1
vendor/github.com/dlclark/regexp2
generated
vendored
Submodule
Submodule vendor/github.com/dlclark/regexp2 added at 7632a260cb
1
vendor/github.com/shurcooL/sanitized_anchor_name
generated
vendored
Submodule
1
vendor/github.com/shurcooL/sanitized_anchor_name
generated
vendored
Submodule
Submodule vendor/github.com/shurcooL/sanitized_anchor_name added at 7bfe4c7ecd
1
vendor/gopkg.in/russross/blackfriday.v2
generated
vendored
Submodule
1
vendor/gopkg.in/russross/blackfriday.v2
generated
vendored
Submodule
Submodule vendor/gopkg.in/russross/blackfriday.v2 added at d3b5b032dc
Reference in New Issue
Block a user