Implemented inline code

This commit is contained in:
Eduard Urbach 2024-04-02 19:13:28 +02:00
parent 23cc832e9c
commit a89e2c5857
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
3 changed files with 22 additions and 3 deletions

View file

@ -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) {