Documentation ¶
Overview ¶
Package mycomarkup provides an API for processing Mycomarkup-formatted documents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockTree ¶
BlockTree returns a slice of blocks parsed from the Mycomarkup document contained in ctx.
Pass visitors. Visitors are functions (usually closures) that are called on every top-pevep found block.
Some pre-implemented visitors are in the tools package.
func BlocksToHTML ¶
func BlocksToHTML(ctx mycocontext.Context, ast []blocks.Block) string
BlocksToHTML turns the blocks into their HTML representation.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package blocks provides some of the Mycomarkup's blocks.
|
Package blocks provides some of the Mycomarkup's blocks. |
cmd
|
|
Package genhtml provides utilities for converting Mycomarkup blocks into HTML documents.
|
Package genhtml provides utilities for converting Mycomarkup blocks into HTML documents. |
tag
Package tag provides the data type for (X)HTML tags/DOM nodes.
|
Package tag provides the data type for (X)HTML tags/DOM nodes. |
Package globals provides global variables.
|
Package globals provides global variables. |
Package links provides a data type for links.
|
Package links provides a data type for links. |
Package mycocontext provides a wrapper over context.Context and some operations on the wrapper.
|
Package mycocontext provides a wrapper over context.Context and some operations on the wrapper. |
Package parser turns the source text into a sequence of blocks.
|
Package parser turns the source text into a sequence of blocks. |
Package temporary_workaround is a temporary workaround to break import cycle for some transclusion tricks.
|
Package temporary_workaround is a temporary workaround to break import cycle for some transclusion tricks. |
Package tools provides visitors for external usage and will provide other tools one day.
|
Package tools provides visitors for external usage and will provide other tools one day. |
Package util provides simple utility functions usable in all modules.
|
Package util provides simple utility functions usable in all modules. |
lines
Package line provides a datatype for text lines that are generated by package tag.
|
Package line provides a datatype for text lines that are generated by package tag. |
Click to show internal directories.
Click to hide internal directories.