INNER CODE UNIT · Go
Math
gopherdata/gophernotes · display.go:430
func Math(latex string) Data {
return MakeData3(MIMETypeLatex, latex, "$$"+strings.Trim(latex, "$")+"$$")
}
func PDF(pdf []byte) Data {
return MakeData(MIMETypePDF, pdf)
}
func PNG(png []byte) Data {
return MakeData(MIMETypePNG, png)
}
func SVG(svg string) Data {
return MakeData(MIMETypeSVG, svg)
}
// MIME encapsulates the data and metadata into a Data.
// The 'data' map is expected to contain at least one {key,value} pair,