markdown

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(source []byte, plantumlServer string) ([]byte, error)

Convert converts Markdown source to HTML. plantumlServer is the PlantUML server URL for code block conversion.

func PreprocessCodeBlocks

func PreprocessCodeBlocks(source []byte, plantumlServer string) []byte

PreprocessCodeBlocks replaces svg, mermaid, and plantuml fenced code blocks in Markdown source with raw HTML before goldmark processing. Returns the processed source and is safe because goldmark is configured with html.WithUnsafe().

func RewriteLinks(htmlContent []byte, scheme string, server string) []byte

RewriteLinks rewrites links in HTML content for proxy navigation. scheme is "local", "http", or "https". server is the remote server host (empty for local).

Types

This section is empty.

Jump to

Keyboard shortcuts

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