package nip54 import ( "strings" "testing" ) func TestArticleAsHTML(t *testing.T) { tests := []struct { name string input string contains []string }{ { name: "simple paragraph", input: "Hello world", contains: []string{"
", "Hello world", "
"}, }, { name: "emphasis", input: "*Hello* _world_", contains: []string{"", "Hello", "", "", "world", ""}, }, { name: "heading", input: "# Title", contains: []string{"