Simplified switch statement
This commit is contained in:
parent
527dcac884
commit
3b776ef8cd
@ -270,9 +270,8 @@ func (r *renderer) writeText(markdown string) {
|
|||||||
|
|
||||||
i += searchStart
|
i += searchStart
|
||||||
searchStart = i + 1
|
searchStart = i + 1
|
||||||
c := markdown[i]
|
|
||||||
|
|
||||||
switch c {
|
switch markdown[i] {
|
||||||
case '[':
|
case '[':
|
||||||
r.WriteString(html.EscapeString(markdown[tokenStart:i]))
|
r.WriteString(html.EscapeString(markdown[tokenStart:i]))
|
||||||
tokenStart = i
|
tokenStart = i
|
||||||
|
Loading…
Reference in New Issue
Block a user