markdown

package
v0.0.0-...-8560b1c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToHTML

func ToHTML(markdown []byte) ([]byte, error)

ToHTML converts markdown byte slice to a HTML byte slice

Types

type IDGenerator

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

IDGenerator for goldmark to provide IDs more similar to GitHub's IDs on markdown parsing

func (*IDGenerator) Generate

func (g *IDGenerator) Generate(value []byte, _ ast.NodeKind) []byte

Generate an ID

func (*IDGenerator) Put

func (g *IDGenerator) Put(value []byte)

Put an ID to the list of already used IDs

Jump to

Keyboard shortcuts

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