render

package
v2.35.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTMLFromMarkdown

func HTMLFromMarkdown(markdown string) string

func InnerTextFromMarkdown added in v2.35.0

func InnerTextFromMarkdown(markdown string) (out string, err error)

InnerTextFromMarkdown renders Markdown (including embedded raw HTML) to HTML and returns its visible text ("innerText"). Block, code-line, and table-cell boundaries become newlines and intra-line whitespace is collapsed; link text is kept but URLs, images, and badges are dropped.

Input is untrusted: a parser panic is recovered and returned as an error.

func PlaintextFromMarkdown

func PlaintextFromMarkdown(markdown string) (string, error)

PlaintextFromMarkdown function converts the description with optional Markdown tags to the plaintext form.

Types

This section is empty.

Jump to

Keyboard shortcuts

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