aboutsummaryrefslogtreecommitdiff
path: root/inline_parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'inline_parser.go')
-rw-r--r--inline_parser.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/inline_parser.go b/inline_parser.go
index 84fae21..9a33b56 100644
--- a/inline_parser.go
+++ b/inline_parser.go
@@ -1,5 +1,5 @@
-// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
// SPDX-License-Identifier: GPL-3.0-or-later
+// SPDX-FileCopyrightText: 2020 M. Shulhan <ms@kilabit.info>
package asciidoctor
@@ -1074,6 +1074,9 @@ func indexByteUnescape(in []byte, c byte) (out []byte, idx int) {
}
return out, x
}
+ if isEsc {
+ isEsc = false
+ }
out = append(out, in[x])
}
return nil, -1