use latest html2gemini API

This commit is contained in:
Luke Emmet 2020-08-30 21:39:29 +01:00
parent fa5f0aac1b
commit bd708e27c9

View File

@ -116,10 +116,10 @@ func main() {
options.PrettyTablesOptions.CenterSeparator = " " options.PrettyTablesOptions.CenterSeparator = " "
options.PrettyTablesOptions.ColumnSeparator = " " options.PrettyTablesOptions.ColumnSeparator = " "
options.PrettyTablesOptions.RowSeparator = " " options.PrettyTablesOptions.RowSeparator = " "
ctx := html2gemini.NewTraverseContext(*options)
text, err := html2gemini.FromString(inputHtml, *options) text, err := html2gemini.FromString(inputHtml, *ctx)
check(err) check(err)