md2json

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonVisitor

type JsonVisitor struct {
	JsonDocs []string
	JsonDoc  []string
	Header   []string
	// contains filtered or unexported fields
}

func NewJsonVisitor

func NewJsonVisitor(funcs ...SetOptsFunc) (visitor *JsonVisitor)

func (*JsonVisitor) Visit

func (visitor *JsonVisitor) Visit(node ast.Node, entering bool) (status ast.WalkStatus)

type ParagraphOptions

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

type SetOptsFunc

type SetOptsFunc func(*JsonVisitor)

func WithParagraphOptions

func WithParagraphOptions(paragraph ParagraphOptions) SetOptsFunc

func WithTableOptions

func WithTableOptions(table TableOptions) SetOptsFunc

type TableOptions

type TableOptions struct {
	PrefixTbName string
	ReplaceEmpty string
}

Jump to

Keyboard shortcuts

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