tabdown

package module
v0.0.0-...-a070835 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 9 Imported by: 0

README

goldmark-tabdown

GoDev

goldmark-tabdown is an extension for the goldmark that allows you to parse Tabdown documents.

Usage

Installation
go get github.com/laenzlinger/goldmark-tabdown
Access the song
// TODO
Render the song
// TODO

License

MIT

Author

Christof Laenzlinger

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tabdown = &tabdown{}

Tabdown is an extension for goldmark.

Functions

func New

func New(opts ...Option) goldmark.Extender

New returns a new tabdown extension.

func NewChordBlockHTMLRenderer

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

NewChordBlockHTMLRenderer returns a new ChordBlockHTMLRenderer.

func NewChordBlockParser

func NewChordBlockParser() parser.BlockParser

NewChordBlockParser returns a BlockParser that can parse Tabdown blocks.

Types

type ChordBlockHTMLRenderer

type ChordBlockHTMLRenderer struct {
	html.Config
}

ChordBlockHTMLRenderer is a renderer.NodeRenderer implementation that renders ChordBlock nodes.

func (*ChordBlockHTMLRenderer) RegisterFuncs

RegisterFuncs implements renderer.NodeRenderer.RegisterFuncs.

type Option

type Option func(*tabdown)

Option is a functional option type for this extension.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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