parser

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package parser turns the source text into a sequence of blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFormatted

func MakeFormatted(firstLine, hyphaName string) blocks.Formatted

MakeFormatted parses the formatted text in the input and returns it. Does it?

func MakeHeading

func MakeHeading(line, hyphaName string, level uint) blocks.Heading

MakeHeading parses the heading on the given line and returns it. Set its level by yourself though.

func Parse

func Parse(ctx mycocontext.Context, out chan blocks.Block)

Parse parses the Mycomarkup document in the given context. All parsed blocks are written to out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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