package genhtml
import "git.sr.ht/~bouncepaw/mycomarkup/v5/genhtml"
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 ¶
- func BlockToTag(ctx mycocontext.Context, block blocks.Block) tag.Tag
- func MapTransclusionErrorToTag(xcl blocks.Transclusion) tag.Tag
Functions ¶
func BlockToTag ¶
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.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
genhtml/tag | Package tag provides the data type for (X)HTML tags/DOM nodes. |
- Version
- v5.6.0 (latest)
- Published
- Nov 29, 2023
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 20 hours ago –
Tools for package owners.