Documentation
¶
Overview ¶
Package markdown reads a work's words as Markdown into a flat list of blocks for a format to lay out. Inline emphasis and links are kept as plain text, and every line break is kept, since most of what it writes is plain text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
Kind Kind
Text string // line breaks kept; "" for a rule or a table
Level int // a heading's, from 1
Depth int // how far in: list items and quotes go one deeper
Quote bool // inside a quote
Mark string // an item's "•" or "3."
Tight bool // a paragraph in a tight list: no space after it
Rows [][]string
}