pandoc

package
v0.0.0-...-034be12 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertRequest

type ConvertRequest struct {
	Input        io.Reader
	Output       io.ReadWriter
	InputFormat  string
	OutputFormat string
}

type PandocConverter

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

PandocConverter represents a document converter based on Pandoc

func NewConverter

func NewConverter() (*PandocConverter, error)

NewConverter creates a new document converter

func (*PandocConverter) Convert

func (p *PandocConverter) Convert(req *ConvertRequest) error

Convert converts a file from one format to another

func (*PandocConverter) ValidateFormat

func (p *PandocConverter) ValidateFormat(format string) bool

ValidateFormat checks if the format is supported

Jump to

Keyboard shortcuts

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