From 18cb17de4a514c0d4e38fff8cc05ada651fc8fcb Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Sun, 20 Oct 2019 17:18:48 -0400 Subject: [PATCH] quick syntax highlight test --- markitzero_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/markitzero_test.go b/markitzero_test.go index ccef139..0a00e29 100644 --- a/markitzero_test.go +++ b/markitzero_test.go @@ -35,6 +35,12 @@ func TestLinebreak3(t *testing.T) { doonezerotest(t, input, output) } +func TestCodeStyles(t *testing.T) { + input := "hello\n\n```go\nfunc(s string)\n```\n\ndoes it go?" + output := "hello
func(s string)

does it go?" + doonezerotest(t, input, output) +} + func TestSimplelink(t *testing.T) { input := "This is a [link](https://example.com)." output := `This is a link.`