aboutsummaryrefslogtreecommitdiff
path: root/parser_inline_test.go
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-10-27 00:06:07 +0700
committerShulhan <m.shulhan@gmail.com>2020-10-27 00:06:07 +0700
commit52e0530561bbae5e8fc886cd9543be8da09d760d (patch)
tree9755e3cd17b982bd443b619d4691e9b4033a56e2 /parser_inline_test.go
parent578f2c0b14003934faf897a2872ba92e432493ff (diff)
downloadasciidoctor-go-52e0530561bbae5e8fc886cd9543be8da09d760d.tar.xz
all: implement parser for single quote curve
Single quote curve is the one that start with ('`) and end with (`'). If (`') does not have a start format it will turn into apostrophe.
Diffstat (limited to 'parser_inline_test.go')
-rw-r--r--parser_inline_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/parser_inline_test.go b/parser_inline_test.go
index 2594de9..e6e46b8 100644
--- a/parser_inline_test.go
+++ b/parser_inline_test.go
@@ -93,6 +93,15 @@ func TestParserInline_do(t *testing.T) {
}, {
content: "\"`A double quote`\"",
exp: "&#8220;A double quote&#8221;",
+ }, {
+ content: "'`A single quote without end.",
+ exp: "'`A single quote without end.",
+ }, {
+ content: "'` A single quote around space `'",
+ exp: "'` A single quote around space &#8217;",
+ }, {
+ content: "\"`A single quote`\"",
+ exp: "&#8220;A single quote&#8221;",
}}
var buf bytes.Buffer