From cb9786ece86b005f6e0a4fc7b2ee4ba457a58dbe Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Wed, 5 Jul 2023 13:20:38 -0400 Subject: [PATCH] properly handle escape characters --- states.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/states.go b/states.go index a8566e9..93bf10b 100644 --- a/states.go +++ b/states.go @@ -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):