markdown

package
v0.0.0-...-35073d4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package markdown implements conversion from Markdown to HTML.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct{}

Converter converts Markdown content to HTML.

func NewConverter

func NewConverter() *Converter

NewConverter is the constructor of Converter.

func (Converter) ConvertToHTML

func (Converter) ConvertToHTML(
	inputBytes []byte,
) ([]byte, map[string]string, error)

ConvertToHTML converts Markdown bytes to HTML bytes.

This methods is an implementation of [webpage.FormatConverter].

func (Converter) SourceExt

func (Converter) SourceExt() string

SourceExt responds ".md".

This methods is an implementation of [webpage.FormatConverter].

Jump to

Keyboard shortcuts

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