Documentation
¶
Index ¶
- Constants
- func Abstract(w io.Writer, abstract string)
- func AuthorBio(w io.Writer, a Author)
- func Bold(w io.Writer)
- func ChangeDate(w io.Writer, d time.Time)
- func CodeBlock(w io.Writer, code []byte)
- func Display(w io.Writer, p []byte)
- func Esc(w io.Writer, p []byte)
- func Figure(w io.Writer, link string, verticalSize string)
- func HTML(w io.Writer, attribute string)
- func Indent(w io.Writer)
- func IndentParagraph(w io.Writer, title string)
- func Italic(w io.Writer)
- func LeftAlignedParagraph(w io.Writer, title string, level int)
- func LineBreak(w io.Writer)
- func NewRenderer() blackfriday.Renderer
- func Outdent(w io.Writer)
- func Picture(w io.Writer, source string, height, width float32, position Position, ...)
- func Roman(w io.Writer)
- func Table(w io.Writer, p []byte)
- func TableHeading(w io.Writer)
- func Title(w io.Writer, tl string)
- func Underline(w io.Writer)
- type Author
- type Macro
- type PictureFlag
- type Position
Constants ¶
View Source
const ( // Left align the picture Left Position = iota // Center align the picture Center // Right align the picture Right // Outline the picture with a box. Outline PictureFlag = iota // Scale freely scales both picture dimensions. Scale // White out the area to be occupied by the picture. White )
Variables ¶
This section is empty.
Functions ¶
func ChangeDate ¶
ChangeDate changes the date to the given date by printing .ND May 8, 1945
func NewRenderer ¶
func NewRenderer() blackfriday.Renderer
NewRenderer returns a blackfriday.Renderer that will print plan9 troff macros https://plan9.io/sys/doc/troff.pdf
func Picture ¶
func Picture(w io.Writer, source string, height, width float32, position Position, offset float32, flags PictureFlag)
Picture is the mpicture macro https://9p.io/magic/man2html/6/mpictures
Types ¶
Click to show internal directories.
Click to hide internal directories.