Simplified switch statement

This commit is contained in:
Eduard Urbach 2024-04-02 20:31:09 +02:00
parent 527dcac884
commit 3b776ef8cd
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -270,9 +270,8 @@ func (r *renderer) writeText(markdown string) {
i += searchStart
searchStart = i + 1
c := markdown[i]
switch c {
switch markdown[i] {
case '[':
r.WriteString(html.EscapeString(markdown[tokenStart:i]))
tokenStart = i