It would be cool to export figToBuffer(fig types.Fig) *bytes.Buffer there is currently no way other than copy pasting the code. The problem is the library makes only functions available like Show and ToHtml, all do not provide access to the resulting html. Especially ToHtml is panicking, which is pretty bad for a library usage.
It would be cool to export
figToBuffer(fig types.Fig) *bytes.Bufferthere is currently no way other than copy pasting the code. The problem is the library makes only functions available likeShowandToHtml, all do not provide access to the resulting html. EspeciallyToHtmlis panicking, which is pretty bad for a library usage.