properly handle escape characters

main
Nick Dumas 1 year ago
parent b9049f340e
commit cb9786ece8

@ -37,6 +37,7 @@ func lexIdent(l *Lexer) stateFn {
L.Debug("stepping through lexIdent")
switch {
case isEscape(s):
l.next()
l.next()
continue
case isCloseLink(s):
@ -93,6 +94,7 @@ func lexText(l *Lexer) stateFn {
L.Debug("stepping through lexText")
switch {
case isEscape(s):
l.next()
l.next()
continue
case isOpenLink(s):

Loading…
Cancel
Save