Implemented strikethrough text
This commit is contained in:
@ -39,6 +39,11 @@ func TestBold(t *testing.T) {
|
||||
assert.Equal(t, markdown.Render("__bold__"), "<p><strong>bold</strong></p>")
|
||||
}
|
||||
|
||||
func TestStrike(t *testing.T) {
|
||||
assert.Equal(t, markdown.Render("~normal text~"), "<p>~normal text~</p>")
|
||||
assert.Equal(t, markdown.Render("~~deleted text~~"), "<p><del>deleted text</del></p>")
|
||||
}
|
||||
|
||||
func TestLink(t *testing.T) {
|
||||
assert.Equal(t, markdown.Render("[text](https://example.com/)"), "<p><a href=\"https://example.com/\">text</a></p>")
|
||||
assert.Equal(t, markdown.Render("[text](https://example.com/"), "<p>[text](https://example.com/</p>")
|
||||
|
Reference in New Issue
Block a user