Disabled formatting in inline codes
This commit is contained in:
parent
9e6767fb12
commit
1c7f9f2f7d
2 changed files with 13 additions and 11 deletions
|
@ -70,6 +70,7 @@ 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("`unfinished"), "<p>`unfinished</p>")
|
||||
assert.Equal(t, markdown.Render("Inline `monospace` text."), "<p>Inline <code>monospace</code> text.</p>")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue