all repos — grayfriday @ 106f1ec1bb14f46caf8088917a61182ad911af14

blackfriday fork with a few changes

Add test for CompletePage flag

The implementation for CompletePage was committed with d7f1878 by
accident, following up with the test.
Vytautas Ĺ altenis vytas@rtfb.lt
Mon, 04 Apr 2016 14:17:16 +0300
commit

106f1ec1bb14f46caf8088917a61182ad911af14

parent

607478a8ce5e5da6d7ab19469b507912ef20eccd

1 files changed, 21 insertions(+), 0 deletions(-)

jump to
M block_test.goblock_test.go

@@ -1558,3 +1558,24 @@ doTestsBlock(t, tests, TOC|OmitContents)

// Now run again: make sure OmitContents implies TOC doTestsBlock(t, tests, OmitContents) } + +func TestCompletePage(t *testing.T) { + var tests = []string{ + "*foo*", + `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title></title> + <meta name="GENERATOR" content="Blackfriday Markdown Processor v1.4" /> + <meta charset="utf-8" /> +</head> +<body> + +<p><em>foo</em></p> + +</body> +</html> +`, + } + doTestsParam(t, tests, TestParams{HTMLFlags: UseXHTML | CompletePage}) +}