Documentation ¶
Overview ¶
Package parser turns the source text into a sequence of blocks.
Index ¶
- func FormattedLineToHTML(hyphaName, input string) string
- func MakeFormatted(firstLine, hyphaName string) blocks.Formatted
- func MakeHeading(line, hyphaName string, level uint) blocks.Heading
- func Parse(ctx mycocontext.Context, out chan blocks.Block)
- func TagFromState(stt blocks.SpanKind, tagState map[blocks.SpanKind]bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormattedLineToHTML ¶ added in v1.0.2
FormattedLineToHTML turns the given line of formatted text into HTML by lexing and parsing it in place.
TODO: separate all these steps.
func MakeFormatted ¶ added in v1.0.1
MakeFormatted parses the formatted text in the input and returns it.
func MakeHeading ¶ added in v1.0.1
MakeHeading parses the heading on the given line and returns it. Set its level by yourself though.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.