internal

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package internal provides common utilities for the mdcoach and related packages.

Index

Constants

This section is empty.

Variables

View Source
var Assets embed.FS

Functions

func NewSanitizer

func NewSanitizer() *bluemonday.Policy

func WriteAST

func WriteAST(writer io.Writer, tree ast.Node, source []byte)

WriteAST writes a deterministic, indented representation of tree to writer.

func WriteCascadingStyleSheet added in v0.0.7

func WriteCascadingStyleSheet(w io.Writer, css string) (err error)

func WriteEscapedHTML added in v0.0.7

func WriteEscapedHTML(w io.Writer, s string) error

WriteEscapedHTML writes s to w while escaping HTML-sensitive characters. Its escaping logic is simplified from the standard library's html package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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