markdown

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 4 Imported by: 0

README

Go+ domain-specific text: markdown

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Markdown

type Markdown struct {
	// contains filtered or unexported fields
}

Markdown represents a markdown object.

func New

func New(text string) *Markdown

New creates a new markdown object from a UTF-8 bytes text.

func (*Markdown) Convert

func (p *Markdown) Convert(writer io.Writer, opts ...parser.ParseOption) error

Convert interprets the markdown object and write rendered contents to a writer w.

func (*Markdown) Options

func (p *Markdown) Options(opts ...goldmark.Option) *Markdown

Options sets the options for the markdown object.

func (*Markdown) Parser

func (p *Markdown) Parser(parser parser.Parser) *Markdown

Parser sets the parser for the markdown object.

func (*Markdown) Renderer

func (p *Markdown) Renderer(renderer renderer.Renderer) *Markdown

Renderer sets the renderer for the markdown object.

Jump to

Keyboard shortcuts

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