deck

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package deck parses Margo Markdown into accessible HTML presentation decks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(name string, source []byte) (*Document, error)

func (*Document) Metadata

func (d *Document) Metadata() Metadata

func (*Document) Slides

func (d *Document) Slides() []Slide

type Metadata

type Metadata struct {
	Title       string `yaml:"title"`
	Description string `yaml:"description"`
}

type RenderInput

type RenderInput struct {
	Name      string
	Markdown  []byte
	BaseURL   string
	Theme     margo.ThemeName
	ColorMode margo.ColorMode
}

type Result

type Result struct {
	// contains filtered or unexported fields
}

func Render

func Render(ctx context.Context, compiler *margo.Compiler, input RenderInput) (*Result, error)

func (*Result) DocumentFingerprint

func (r *Result) DocumentFingerprint() margo.DocumentFingerprint

func (*Result) HTML

func (r *Result) HTML() []byte

func (*Result) Requirements

func (r *Result) Requirements() margo.HTMLRequirements

func (*Result) RuntimeDescriptor

func (r *Result) RuntimeDescriptor(instance margo.RenderInstanceID) (margo.RuntimeDescriptor, error)

func (*Result) SlideCount

func (r *Result) SlideCount() int

type Slide

type Slide struct {
	// contains filtered or unexported fields
}

func (Slide) ID

func (s Slide) ID() string

func (Slide) Markdown

func (s Slide) Markdown() []byte

func (Slide) Ordinal

func (s Slide) Ordinal() int

Jump to

Keyboard shortcuts

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