renderer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

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

Renderer converts parsed Markdown components to an Excel file.

func New

func New(cfg config.Config) *Renderer

func (*Renderer) Render

func (r *Renderer) Render(components []parser.Component) error

Render writes all components to an Excel file at cfg.Dst.

type Stylist

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

Stylist manages Excel cell styles.

func NewStylist

func NewStylist(f *excelize.File, cfg config.Config) *Stylist

func (*Stylist) BlockquoteStyle

func (s *Stylist) BlockquoteStyle() (int, error)

func (*Stylist) CodeStyle

func (s *Stylist) CodeStyle() (int, error)

func (*Stylist) H1Style

func (s *Stylist) H1Style() (int, error)

func (*Stylist) H2Style

func (s *Stylist) H2Style() (int, error)

func (*Stylist) H3Style

func (s *Stylist) H3Style() (int, error)

func (*Stylist) H4Style

func (s *Stylist) H4Style() (int, error)

func (*Stylist) H5Style

func (s *Stylist) H5Style() (int, error)

func (*Stylist) H6Style

func (s *Stylist) H6Style() (int, error)

func (*Stylist) HRStyle

func (s *Stylist) HRStyle() (int, error)

func (*Stylist) HyperlinkStyle

func (s *Stylist) HyperlinkStyle() (int, error)

func (*Stylist) ListStyle

func (s *Stylist) ListStyle() (int, error)

func (*Stylist) PlainTextStyle

func (s *Stylist) PlainTextStyle() (int, error)

func (*Stylist) TableCellStyle

func (s *Stylist) TableCellStyle() (int, error)

func (*Stylist) TableCellStyleAligned

func (s *Stylist) TableCellStyleAligned(align string) (int, error)

func (*Stylist) TableHeaderStyle

func (s *Stylist) TableHeaderStyle() (int, error)

func (*Stylist) TableHeaderStyleAligned

func (s *Stylist) TableHeaderStyleAligned(align string) (int, error)

func (*Stylist) TableMergeCellStyle

func (s *Stylist) TableMergeCellStyle() (int, error)

func (*Stylist) TableMergeCellStyleAligned

func (s *Stylist) TableMergeCellStyleAligned(align string) (int, error)

Jump to

Keyboard shortcuts

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