package web import ( "net/http/httptest" "net/url" "strings" "testing" ) func testMarkdown(t *testing.T) *markdown { t.Helper() return newMarkdown(newHighlighter(loadTheme("", "", "dark"), loadTheme("", "", "light"))) } func TestMarkdownNotes(t *testing.T) { m := testMarkdown(t) cases := []struct { name string in string want []string not []string }{ { name: "inline marks", in: "`detect()` prefers **direct env** and only walks the tree as *fallback*", want: []string{"detect()", "direct env", "fallback"}, }, { name: "list after a paragraph", in: "three classes:\n\n- persisted RPC narrowed\n- ingress bounds change", want: []string{"

three classes:

", "