markdown

package
v0.0.0-...-fe628ba Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTitle

func ParseTitle(text []byte) string

ParseTitle parses the title of a markdown file.

func ToHTML

func ToHTML(text []byte) []byte

ToHTML converts a markdown file to an HTML.

func ToHTMLWithTitle

func ToHTMLWithTitle(text []byte) (string, []byte)

ToHTMLWithTitle parses the text that uses the first H1 as a title.

func ToWildHTMLWithTitle

func ToWildHTMLWithTitle(text []byte) (string, []byte)

ToWildHTMLWithTitle parses the text taht uses the first H1 as a title. It does not sanitize the HTML.

Types

This section is empty.

Jump to

Keyboard shortcuts

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