Implemented inline code
This commit is contained in:
parent
68111da0a2
commit
a06defdc3d
3 changed files with 22 additions and 3 deletions
|
@ -52,6 +52,8 @@ func TestTables(t *testing.T) {
|
|||
func TestCode(t *testing.T) {
|
||||
assert.Equal(t, markdown.Render("```\nText\n```"), "<pre><code>Text</code></pre>")
|
||||
assert.Equal(t, markdown.Render("```go\ntype A struct {\n\t\n}\n```"), "<pre><code class=\"language-go\">type A struct {\n\t\n}</code></pre>")
|
||||
assert.Equal(t, markdown.Render("`monospace`"), "<p><code>monospace</code></p>")
|
||||
assert.Equal(t, markdown.Render("Inline `monospace` text."), "<p>Inline <code>monospace</code> text.</p>")
|
||||
}
|
||||
|
||||
func TestQuote(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue