html

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package html renders markdown to a complete, styled HTML document. Importing it (for side effects) registers the "html" format. Its Render function is also reused by the browser-based PDF fallback.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(src []byte) ([]byte, error)

Render converts markdown into a full, self-contained HTML document with basic styling (readable body, bordered tables, code blocks).

Types

type Converter

type Converter struct{}

Converter renders markdown source to an HTML document.

func (Converter) Convert

func (Converter) Convert(src []byte, w io.Writer) error

Jump to

Keyboard shortcuts

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