fix max width
This commit is contained in:
parent
8feb717d91
commit
5ee5d956f0
2 changed files with 2 additions and 1 deletions
|
|
@ -51,6 +51,7 @@ func RenderMarkdown(reader io.Reader) bytes.Buffer {
|
|||
),
|
||||
goldmark.WithRendererOptions(
|
||||
html.WithUnsafe(),
|
||||
html.WithHardWraps(),
|
||||
),
|
||||
goldmark.WithExtensions(
|
||||
highlighting.NewHighlighting(
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ func MarkdownContent(ctx *h.RequestContext, path string, id string) *h.Element {
|
|||
h.Id(id),
|
||||
),
|
||||
h.Div(
|
||||
h.Class("w-full flex flex-col prose max-w-sm md:max-w-xl lg:max-w-4xl prose-code:text-black prose-p:my-1 prose:p-0 prose-li:m-0 prose-ul:m-0 prose-ol:m-0"),
|
||||
h.Class("w-full flex flex-col prose max-w-[90vw] md:max-w-3xl lg:max-w-4xl prose-code:text-black prose-p:my-1 prose:p-0 prose-li:m-0 prose-ul:m-0 prose-ol:m-0"),
|
||||
h.UnsafeRaw(renderer.RenderFile(path, embeddedMd)),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue