1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-10-25 12:47:41 +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

@@ -22,7 +22,7 @@ import (
"github.com/bouncepaw/mycorrhiza/hyphae"
"github.com/bouncepaw/mycorrhiza/util"
"github.com/bouncepaw/mycomarkup/legacy"
"github.com/bouncepaw/mycomarkup/doc"
)
func geminiHomeHypha(w *gemini.ResponseWriter, rq *gemini.Request) {
@@ -46,7 +46,7 @@ func geminiHypha(w *gemini.ResponseWriter, rq *gemini.Request) {
if h.Exists {
fileContentsT, errT := ioutil.ReadFile(h.TextPath)
if errT == nil {
md := markup.Doc(hyphaName, string(fileContentsT))
md := doc.Doc(hyphaName, string(fileContentsT))
contents = md.AsGemtext()
}
}