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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user