fixed #8, removed CR from input markdown
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
9f499ea1de
commit
e99b4326a8
3
main.go
3
main.go
@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
@ -498,6 +499,8 @@ RewriteRule ^$ %{REQUEST_URI}`+goToFixed+`/ [R,L]
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fix \r from markdown for blackfriday
|
||||||
|
input = bytes.Replace(input, []byte("\r"), []byte(""), -1)
|
||||||
html := blackfriday.Run(input, options...)
|
html := blackfriday.Run(input, options...)
|
||||||
|
|
||||||
// use --- for splitting document in markdown parts
|
// use --- for splitting document in markdown parts
|
||||||
|
@ -47,8 +47,8 @@ graph TD
|
|||||||
Der Generator selbst wurde in [Go](https://golang.org/) geschrieben. Es wurden dabei eine Vielzahl existierender Packages verwendet. Unter Anderem:
|
Der Generator selbst wurde in [Go](https://golang.org/) geschrieben. Es wurden dabei eine Vielzahl existierender Packages verwendet. Unter Anderem:
|
||||||
|
|
||||||
- der Markdown-Parser [blackfriday](https://github.com/russross/blackfriday)
|
- der Markdown-Parser [blackfriday](https://github.com/russross/blackfriday)
|
||||||
- die Template-Sprache "Django Template Language" über das Paket [pongo2](github.com/flosch/pongo2)
|
- die Template-Sprache "Django Template Language" über das Paket [pongo2](https://github.com/flosch/pongo2)
|
||||||
- das Logging-Paket [go-logging](github.com/op/go-logging)
|
- das Logging-Paket [go-logging](https://github.com/op/go-logging)
|
||||||
- der YAML-Parser [go-yaml](https://github.com/go-yaml/yaml)
|
- der YAML-Parser [go-yaml](https://github.com/go-yaml/yaml)
|
||||||
|
|
||||||
Weitere Pakete, die verwendet wurden finden Sie in den Quellen.
|
Weitere Pakete, die verwendet wurden finden Sie in den Quellen.
|
||||||
|
Loading…
Reference in New Issue
Block a user