Documentation ¶
Overview ¶
Package render renders text in the style of GitHub using gofpdf.
Index ¶
- func BasicBlockquote(pdf *gofpdf.Fpdf, text string)
- func BasicP(pdf *gofpdf.Fpdf, text string)
- func BasicTable(f *gofpdf.Fpdf, table model.TableContent)
- func Blockquote(pdf *gofpdf.Fpdf, contents model.Contents)
- func BlockquoteBG() (r, g, b int)
- func BlockquoteBorder() (r, g, b int)
- func BlockquoteFG() (r, g, b int)
- func CodeBlock(pdf *gofpdf.Fpdf, contents model.Contents)
- func CodeOrangeFG() (r, g, b int)
- func CodeSpanBG() (r, g, b int)
- func DefaultBG() (r, g, b int)
- func DefaultFG() (r, g, b int)
- func FullP(pdf *gofpdf.Fpdf, contents model.Contents)
- func H1(pdf *gofpdf.Fpdf, contents model.Contents)
- func H2(pdf *gofpdf.Fpdf, contents model.Contents)
- func H3(pdf *gofpdf.Fpdf, contents model.Contents)
- func H4(pdf *gofpdf.Fpdf, contents model.Contents)
- func H5(pdf *gofpdf.Fpdf, contents model.Contents)
- func H6(pdf *gofpdf.Fpdf, contents model.Contents)
- func HR(pdf *gofpdf.Fpdf)
- func HeaderUnderlineFG() (r, g, b int)
- func HighlightedCodeblock(pdf *gofpdf.Fpdf, contents model.Contents, class string)
- func HrFG() (r, g, b int)
- func Image(pdf *gofpdf.Fpdf, src, link string)
- func LightCodeBlockBG() (r, g, b int)
- func LinkFG() (r, g, b int)
- func List(pdf *gofpdf.Fpdf, list model.ListContent)
- func SetMetaData(f *gofpdf.Fpdf, author, title string)
- func Setup(f *gofpdf.Fpdf)
- func Table(f *gofpdf.Fpdf, table model.TableContent)
- func TableCellBG() (r, g, b int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicBlockquote ¶
BasicBlockquote writes text to a blockquote without rendering any enclosed elements.
func BasicTable ¶ added in v0.0.5
func BasicTable(f *gofpdf.Fpdf, table model.TableContent)
BasicTable writes a table with nicely split lines to a gofpdf.Fpdf. https://github.com/jung-kurt/gofpdf/blob/master/fpdf_test.go#L525
func Blockquote ¶
Blockquote does what BasicBlockquote don't.
func BlockquoteBG ¶ added in v0.0.3
func BlockquoteBG() (r, g, b int)
BlockquoteBG rgb values (223, 226, 229)
func BlockquoteBorder ¶ added in v0.0.3
func BlockquoteBorder() (r, g, b int)
BlockquoteBorder rgb values (223, 226, 229)
func BlockquoteFG ¶ added in v0.0.3
func BlockquoteFG() (r, g, b int)
BlockquoteFG rgb values (106, 115, 125)
func CodeOrangeFG ¶ added in v0.0.3
func CodeOrangeFG() (r, g, b int)
CodeOrangeFG rgb values (227, 98, 9)
func CodeSpanBG ¶ added in v0.0.3
func CodeSpanBG() (r, g, b int)
CodeSpanBG rgb values (243, 243, 243)
func DefaultBG ¶ added in v0.0.3
func DefaultBG() (r, g, b int)
DefaultBG rgb values (255, 255, 255)
func HeaderUnderlineFG ¶ added in v0.0.3
func HeaderUnderlineFG() (r, g, b int)
HeaderUnderlineFG rgb values (234, 236, 239)
func HighlightedCodeblock ¶ added in v0.0.3
HighlightedCodeblock draws a codeblock with syntax highlighting provided by Chroma.
func LightCodeBlockBG ¶ added in v0.0.4
func LightCodeBlockBG() (r, g, b int)
LightCodeBlockBG rgb values (246, 248, 250)
func List ¶
func List(pdf *gofpdf.Fpdf, list model.ListContent)
List writes a list with any level of indentation to a gofpdf.Fpdf.
func Table ¶
func Table(f *gofpdf.Fpdf, table model.TableContent)
Table writes a table to a gofpdf.Fpdf.
func TableCellBG ¶ added in v0.0.3
func TableCellBG() (r, g, b int)
TableCellBG rgb values (246, 248, 250)
Types ¶
This section is empty.