diff --git a/_examples/mvc/login/main.go b/_examples/mvc/login/main.go index fc81a3f8..38b2f63f 100644 --- a/_examples/mvc/login/main.go +++ b/_examples/mvc/login/main.go @@ -3,7 +3,7 @@ package main import ( "time" - "github.com/kataras/iris/_examples/mvc/login-example/user" + "github.com/kataras/iris/_examples/mvc/login/user" "github.com/kataras/iris" "github.com/kataras/iris/sessions" @@ -11,6 +11,8 @@ import ( func main() { app := iris.New() + // You got full debug messages, useful when using MVC and you want to make + // sure that your code is compatible with the Iris' MVC Architecture. app.Logger().SetLevel("debug") app.RegisterView(iris.HTML("./views", ".html").Layout("shared/layout.html")) diff --git a/context/context.go b/context/context.go index cd0afc0f..90ad3a78 100644 --- a/context/context.go +++ b/context/context.go @@ -2053,7 +2053,7 @@ func (ctx *context) XML(v interface{}, opts ...XML) (int, error) { // WriteMarkdown parses the markdown to html and renders these contents to the writer. func WriteMarkdown(writer io.Writer, markdownB []byte, options Markdown) (int, error) { - buf := blackfriday.MarkdownCommon(markdownB) + buf := blackfriday.Run(markdownB) if options.Sanitize { buf = bluemonday.UGCPolicy().SanitizeBytes(buf) }