Markdown

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Unfinished implementation of a markdown formatter

Index

Constants

This section is empty.

Variables

View Source
var (
	PedanticMode bool = true
)

Functions

This section is empty.

Types

type Header struct {
	Text  string
	Style TableAllignmentType
}

type Table

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

func NewTable

func NewTable() *Table

func (*Table) AddRow

func (t *Table) AddRow(elements []string) error

func (*Table) AppendHeader

func (t *Table) AppendHeader(header Header) error

func (*Table) CanAddRow added in v0.2.9

func (t *Table) CanAddRow(elements []string) bool

func (*Table) ToText

func (t *Table) ToText() []string

func (*Table) WithHeader added in v0.2.7

func (t *Table) WithHeader(header Header) *Table

type TableAllignmentType added in v0.2.3

type TableAllignmentType int
const (
	TableStyleCenter TableAllignmentType = iota
	TableStyleLeft
	TableStyleRight
)

func (TableAllignmentType) String added in v0.2.3

func (a TableAllignmentType) String() string

Jump to

Keyboard shortcuts

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