context

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeStr added in v0.0.2

func EscapeStr(s string) string

func FlattenInlines

func FlattenInlines(ll pandoc.InlineList) string

Types

type MarkdownAsset added in v0.0.2

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

type Project added in v0.0.2

type Project struct {
	MainDir   string
	ConfigDir string
	WorkDir   string

	Definitions    map[string]string
	Layouts        map[string]string
	MarkdownAssets []*MarkdownAsset
	TemplateAssets []*TemplateAsset
	// contains filtered or unexported fields
}

func NewProject added in v0.0.2

func NewProject(workdir string) *Project

func (*Project) BuildPDF added in v0.0.2

func (prj *Project) BuildPDF() (pdf string, err error)

func (*Project) LoadConfig added in v0.0.2

func (prj *Project) LoadConfig(fn string) (err error)

func (*Project) LoadMain added in v0.0.2

func (prj *Project) LoadMain(fn string) (err error)

func (*Project) Process added in v0.0.2

func (prj *Project) Process() (err error)

type TemplateAsset added in v0.0.2

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

type Writer

type Writer struct {
	DefaultExternalFigureSize string // used to constrain externalfigure size when neigher its width nor height is specified
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(w io.Writer, indir string) *Writer

func (*Writer) SetTopLevelDivision

func (w *Writer) SetTopLevelDivision(s string)

func (*Writer) WriteBlocks

func (w *Writer) WriteBlocks(bb []pandoc.Block)

func (*Writer) WriteInlines

func (w *Writer) WriteInlines(ll pandoc.InlineList)

Jump to

Keyboard shortcuts

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