Documentation
¶
Overview ¶
Package presentation makes HTML presentations from Markdown files.
Index ¶
- func New(ctx context.Context, w io.Writer, sources []string, withOptions ...Option) error
- func Parse(sources []string) ([]Source, Frontmatter, error)
- func Render(ctx context.Context, w io.Writer, sources []Source, metadata Frontmatter, ...) error
- type Frontmatter
- type Option
- func WithFooterTemplate(t *template.Template) Option
- func WithHeaderTemplate(t *template.Template) Option
- func WithImageCache(cache *mdcoach.ImageCache) Option
- func WithImageQuality(q int) Option
- func WithImageSizeLimit(w, h int) Option
- func WithParser(p parser.Parser) Option
- func WithRenderer(r html.Renderer) Option
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Frontmatter ¶ added in v0.0.7
type Option ¶
type Option func(*options) error
func WithFooterTemplate ¶ added in v0.0.7
func WithHeaderTemplate ¶ added in v0.0.7
func WithImageCache ¶ added in v0.0.7
func WithImageCache(cache *mdcoach.ImageCache) Option
func WithImageQuality ¶
func WithImageSizeLimit ¶
func WithParser ¶
func WithRenderer ¶
Click to show internal directories.
Click to hide internal directories.