1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-11-19 00:25:20 +00:00

Update mycomarkup to v0.1.0

This commit is contained in:
Timur Ismagilov
2021-05-13 23:13:11 +05:00
parent 71c89a64f3
commit dbae2b3547
6 changed files with 14 additions and 41 deletions

View File

@@ -2,6 +2,7 @@ package web
import (
"fmt"
"github.com/bouncepaw/mycomarkup/doc"
"log"
"net/http"
@@ -11,8 +12,6 @@ import (
"github.com/bouncepaw/mycorrhiza/user"
"github.com/bouncepaw/mycorrhiza/util"
"github.com/bouncepaw/mycorrhiza/views"
"github.com/bouncepaw/mycomarkup/legacy"
)
func initMutators() {
@@ -198,7 +197,7 @@ func handlerUploadText(w http.ResponseWriter, rq *http.Request) {
hyphaName,
textData,
"",
markup.Doc(hyphaName, textData).AsHTML()),
doc.Doc(hyphaName, textData).AsHTML()),
u))
} else {
http.Redirect(w, rq, "/hypha/"+hyphaName, http.StatusSeeOther)