pandoc

package
v0.0.0-...-8112484 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Version

func Version(exe string)

Version i.e. `pandoc --version`

Types

type Settings

type Settings struct {
	Executable   string `json:"exe"`
	HTMLTemplate string `json:"html"`
	MetaTemplate string `json:"meta"`
	Flags        string `json:"flags"`
	Extensions   string `json:"extensions"`
}

Settings is for pandoc configuration settings

type Wrapper

type Wrapper struct {
	PandocEXE  string
	InputFile  string
	InputType  string
	InputEXT   string
	OutputType string

	DoStandalone        bool
	DoNumericalHeadings bool
	DoTOC               bool
	NoHighlight         bool
	// contains filtered or unexported fields
}

Wrapper wraps pandoc of course.

func Create

func Create(app string, flags string, extensions string, tpl string) Wrapper

Create makes a new Wrapper with some default settings, and some integrated.

func (*Wrapper) Args

func (w *Wrapper) Args() []string

Args gets the command-arguments.

func (*Wrapper) Do

func (w *Wrapper) Do(
	pInputFile string,
	pStdOutBuffer *bytes.Buffer,
	pStdErrBuffer *bytes.Buffer,
	pUseStandardFallback bool) error

Do does

Jump to

Keyboard shortcuts

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