aboutsummaryrefslogtreecommitdiff
path: root/markdown/ast_quote_test.go
blob: 203d4fcfb6fa1280ccd1bb0c0e88cce51b60e93c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package markdown

import "testing"

func TestQuote(t *testing.T) {
	t.Run("quote", func(t *testing.T) {
		t.Run("simple", test(`
> Bonsoir
`, `<div class="quote"><blockquote>Bonsoir</blockquote></div>`))
		t.Run("source", test(`
> Bonsoir, je suis un **code**
avec une source
`, `<div class="quote"><blockquote>Bonsoir, je suis un <b>code</b></blockquote><p>avec une source</p></div>`))
	})
}