markdown

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package markdown registers the Markdown renderer with the stripes registry. Import for side effects to enable text/markdown support:

import _ "github.com/firetiger-oss/stripes/markdown"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w io.Writer, r io.Reader, styles *stripes.Styles)

Render writes a styled rendering of the Markdown read from r to w. The renderer streams: top-level blocks are emitted to w as soon as the input makes them safely final, so feeding a slow-arriving reader (HTTP body, stdin from an LLM client, ...) produces output incrementally rather than waiting for EOF. The accumulated buffer is re-parsed with goldmark on each chunk, and a block is treated as final once it gains a successor sibling, or — for ATX headings, setext headings, and thematic breaks — once its source lines are terminated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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