markdown

package
v0.0.0-...-a7c1438 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractImageUrls

func ExtractImageUrls(md string) []string

func ImportReplacer

func ImportReplacer(renameMap map[string]string, existingMap map[string]struct{}) types.Replacer[string]

func NewParser

func NewParser(view types.HTMLView, mediaReplacer types.Replacer[string], link types.Link) goldmark.Markdown

func Parse

func Parse(s string, view types.HTMLView, mediaReplacer types.Replacer[string], link types.Link) *parsedText

func ReplaceImageUrls

func ReplaceImageUrls(md string, replace types.Replacer[string]) string

func ReplaceImageUrlsOrLinkify

func ReplaceImageUrlsOrLinkify(md string, replace ErrorReplacer) (string, error)

func ToEnrichedTemplate

func ToEnrichedTemplate(s string, view types.HTMLView, mediaReplacer types.Replacer[string], link types.Link) template.HTML

Types

type EmbeddedLink struct {
	URL             string
	OnlyLinkInBlock bool
}

type ErrorReplacer

type ErrorReplacer func(in string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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