INNER CODE UNIT · Go

TestCollapse_Table

JohannesKaufmann/html-to-markdown · collapse/collapse_test.go:151

func TestCollapse_Table(t *testing.T) {
	runs := []struct {
		desc  string
		input string

		expectedBefore string // optional
		expectedAfter  string
	}{
		{
			desc:  "basic example",
			input: "   <p>Foo   bar</p>  <p>Words</p> ",
			expectedBefore: `
#document
├─html
│ ├─head
│ ├─body
│ │ ├─p
│ │ │ ├─#text "Foo   bar"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…