X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/c781f79f3c8cb9a7577ee1574d196988da2719b3..959c24478e2c3a596a81cca359fd784c897f46a2:/terminal_markdown_test.go diff --git a/terminal_markdown_test.go b/terminal_markdown_test.go index a1676f3..0eb3222 100644 --- a/terminal_markdown_test.go +++ b/terminal_markdown_test.go @@ -16,13 +16,13 @@ func TestTerminalMarkdownBlocksAndMarks(t *testing.T) { want []string }{ { - name: "headings and a full width rule", + name: "renders headings and fills the rule width", text: "# First\n###### Last ###\n---", columns: 12, want: []string{"\x1b[1mFirst\x1b[0m", "\x1b[1mLast\x1b[0m", "\x1b[2m------------\x1b[0m"}, }, { - name: "bold italic and code", + name: "renders bold italic and inline code styles", text: "**bold** __also__ *lean* _also_ `code`", columns: 80, want: []string{"\x1b[1mbold\x1b[0m \x1b[1malso\x1b[0m \x1b[3mlean\x1b[0m \x1b[3malso\x1b[0m \x1b[7mcode\x1b[0m"},