genhtml

package
v3.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package genhtml provides utilities for converting Mycomarkup blocks into HTML documents. As of now, some parts of HTML generation are in other parts of the library, WIP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockToTag

func BlockToTag(ctx mycocontext.Context, block blocks.Block, counter *blocks.IDCounter) tag.Tag

BlockToTag turns the given Block into a Tag depending on the Context and IDCounter.

func MapTransclusionErrorToTag

func MapTransclusionErrorToTag(xcl blocks.Transclusion) tag.Tag

MapTransclusionErrorToTag returns an error tag that you should display to the user. If there is no error in the transclusion, bad things will happen, so verify with xcl.HasError beforehand.

Types

This section is empty.

Directories

Path Synopsis
Package tag provides the data type for (X)HTML tags/DOM nodes.
Package tag provides the data type for (X)HTML tags/DOM nodes.

Jump to

Keyboard shortcuts

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