mdhtml

package
v0.0.0-...-cd6b1fc Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT, MIT Imports: 13 Imported by: 0

README

Fork of https://github.com/MichaelMure/go-term-markdown

It's a great library, but a few issues that make direct inclusion unsuitable. Using upstream directly bloated the binary from 4mb to 12mb.

This fork makes the following changes:

  • Removes remote image loading

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Green        = color.New(color.FgGreen).SprintFunc()
	HiGreen      = color.New(color.FgHiGreen).SprintFunc()
	GreenBold    = color.New(color.FgGreen, color.Bold).SprintFunc()
	Blue         = color.New(color.FgBlue).SprintFunc()
	BlueBgItalic = color.New(color.BgBlue, color.Italic).SprintFunc()
	Red          = color.New(color.FgRed).SprintFunc()
)

Functions

func Render

func Render(source string, lineWidth int, leftPad int, opts ...Options) []byte

Types

type CellAlign

type CellAlign int
const (
	CellAlignLeft CellAlign = iota
	CellAlignRight
	CellAlignCenter
	CellAlignCopyHeader
)

type Options

type Options func(r *renderer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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