render

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Longman5Online = "LONGMAN5/Online"
	LongmanEasy    = "LONGMAN/Easy"
	OLD9           = "OLD9"
)

Variables

View Source
var SeparatorClose = "}"
View Source
var SeparatorOpen = "{"

Functions

func IsElement

func IsElement(n *html.Node, ele string, class string) bool

func Markdownify added in v0.1.5

func Markdownify(info io.Reader) string

func ParseHTML

func ParseHTML(info io.Reader) string

func ParseMDX

func ParseMDX(info io.Reader, ft string) string

Types

type HTMLRender

type HTMLRender struct {
	Raw        string
	SourceType string
}

func (*HTMLRender) Render

func (h *HTMLRender) Render() string

type MarkdownRender added in v0.1.5

type MarkdownRender struct {
	Raw        string
	SourceType string
}

func (*MarkdownRender) Render added in v0.1.5

func (m *MarkdownRender) Render() string

type Renderer

type Renderer interface {
	Render() string
}

Jump to

Keyboard shortcuts

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