package zas import ( "strings" "testing" ) // renderMarkdown used to run goldmark's converter output through // html.UnescapeString before handing it to the HTML5 parser in // parseAndReplace. Goldmark escapes code block contents on the way out, so // that unescape turned HTML entities inside a fenced or indented code block // back into raw markup bytes right before they were re-parsed as HTML - // corrupting <, >, and & in code samples, and turning a literal ") { t.Fatalf("codeblocks.html = %q, want no live