render

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package render maps slidown's internal slide model (the slidown package types produced by the md parser) onto the pptx package's serializable model.

The mapping mirrors deck's "how markdown maps to placeholders" rules so that slidown stays compatible with deck's Markdown semantics: the shallowest heading becomes the title, the next becomes the subtitle, and everything else becomes body content. Inline fragment styles (bold/italic/code/link/ strikethrough/underline/...) are translated to OOXML run properties.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToPresentation

func ToPresentation(ss slidown.Slides) *pptx.Presentation

ToPresentation converts internal slides into a pptx.Presentation using the built-in default layout (title + body placeholders).

func ToPresentationWithTemplate

func ToPresentationWithTemplate(ss slidown.Slides, tmpl *pptx.Template) *pptx.Presentation

ToPresentationWithTemplate converts internal slides into a pptx.Presentation that uses the given template's design (theme, masters, layouts). Each slide is mapped onto a template layout and its placeholders.

Types

This section is empty.

Jump to

Keyboard shortcuts

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