package document import ( "archive/zip" "bytes" "encoding/xml" "io" "strings" "testing" ) const sample = "# Title\n\nSome **bold**, *italic*, `code` & a [link](http://example.com/?a=1&b=2).\n\n" + "- one\n- two\n - nested\n\n1. first\n2. second\n ```\n code in item\n ```\n\n" + "> quote\n\n---\n\n```\nfunc main() {}\n```\n\n| a | b |\n|---|---|\n| 1 | 2 |\n" func TestHTML(t *testing.T) { out := string(HTML([]byte(sample))) for _, want := range []string{"", "