Generate markdown for html view
This commit is contained in:
parent
7a72931527
commit
4d79405e22
2
main.go
2
main.go
|
@ -678,7 +678,7 @@ func (h *indexHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
builder := strings.Builder{}
|
builder := strings.Builder{}
|
||||||
if format == "markdown" {
|
if format == "markdown" || format == "html" {
|
||||||
for _, item := range listItems {
|
for _, item := range listItems {
|
||||||
lines := strings.Split(item.Text, "\n")
|
lines := strings.Split(item.Text, "\n")
|
||||||
if len(lines) > 1 {
|
if len(lines) > 1 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user