mark

package module
v0.0.0-...-9788c89 Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: MIT Imports: 8 Imported by: 1

README

goldmark-mark

Goldmark extension for HTML mark tags

This is heavily based on the strikethrough extension of Goldmark.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mark = &mark{}

Mark is an extension that allow you to use mark expression like '~~text~~' .

View Source
var MarkAttributeFilter = html.GlobalAttributeFilter

MarkAttributeFilter defines attribute names which dd elements can have.

Functions

func NewMarkHTMLRenderer

func NewMarkHTMLRenderer(opts ...html.Option) renderer.NodeRenderer

NewMarkHTMLRenderer returns a new MarkHTMLRenderer.

func NewMarkParser

func NewMarkParser() parser.InlineParser

NewMarkParser return a new InlineParser that parses mark expressions.

Types

type MarkHTMLRenderer

type MarkHTMLRenderer struct {
	html.Config
}

MarkHTMLRenderer is a renderer.NodeRenderer implementation that renders Mark nodes.

func (*MarkHTMLRenderer) RegisterFuncs

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

Directories

Path Synopsis
Package ast defines AST nodes that represents extension's elements
Package ast defines AST nodes that represents extension's elements

Jump to

Keyboard shortcuts

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