diff --git a/md2man/roff.go b/md2man/roff.go index f60948e..c238a78 100644 --- a/md2man/roff.go +++ b/md2man/roff.go @@ -167,6 +167,11 @@ func (r *roffRenderer) RenderNode(w io.Writer, node *blackfriday.Node, entering r.handleTableCell(w, node, entering) case blackfriday.HTMLSpan: // ignore other HTML tags + case blackfriday.HTMLBlock: + if bytes.HasPrefix(node.Literal, []byte("\n\nSecond paragraph\n", + ".nh\n\n.PP\nFirst paragraph\n\n.PP\nSecond paragraph\n", + } + doTestsParam(t, blockTests, TestParams{}) + + inlineTests := []string{ + "Text with a comment in the middle\n", + ".nh\n\n.PP\nText with a comment in the middle\n", + } + doTestsInlineParam(t, inlineTests, TestParams{}) +} + func execRecoverableTestSuite(t *testing.T, tests []string, params TestParams, suite func(candidate *string)) { // Catch and report panics. This is useful when running 'go test -v' on // the integration server. When developing, though, crash dump is often