mdrenderer

package
v0.0.0-...-5733806 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageAttNode

type ImageAttNode struct {
	ast.BaseInline

	Filename string
}

func (*ImageAttNode) Dump

func (att *ImageAttNode) Dump(source []byte, level int)

func (*ImageAttNode) Kind

func (att *ImageAttNode) Kind() ast.NodeKind

type LinkConv

type LinkConv struct{}

func (*LinkConv) Extend

func (conv *LinkConv) Extend(md goldmark.Markdown)

type LinkTransformer

type LinkTransformer struct{}

func (*LinkTransformer) Transform

func (lt *LinkTransformer) Transform(doc *ast.Document, _ text.Reader, pc parser.Context)

type LocalRenderer

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

LocalRenderer is a local markdown renderer. It does not depend on any external services but it does not support mathjax rendering or any extensions to the markdown standard I intend to make.

func NewLocalRenderer

func NewLocalRenderer() *LocalRenderer

func (*LocalRenderer) Render

func (r *LocalRenderer) Render(src []byte, ctx *kilonova.RenderContext) ([]byte, error)

Directories

Path Synopsis
Code in katex.go has been mostly derived from [goldmark-mathjax](https://github.com/litao91/goldmark-mathjax).
Code in katex.go has been mostly derived from [goldmark-mathjax](https://github.com/litao91/goldmark-mathjax).

Jump to

Keyboard shortcuts

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