markdown

package
v0.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: AGPL-3.0 Imports: 19 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Full added in v0.17.0

func Full(ctx context.Context, input string, handleImages bool) template.HTML

Full turns a markdown into HTML using all rules.

The context carries the tenant, whose AllowedSchemes setting extends the set of link destinations that may be rendered. A context without a tenant falls back to the baseline schemes, so forgetting to pass one fails closed.

func PlainText added in v0.13.0

func PlainText(input string) string

PlainText parses given markdown input and return only the text.

Unlike Full, this needs no destination gating or scheme allow list: strictPolicy strips every tag and attribute, so neither an unsafe link destination nor markup forged by the renderer survives.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL