diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-10-27 00:06:07 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-10-27 00:06:07 +0700 |
| commit | 52e0530561bbae5e8fc886cd9543be8da09d760d (patch) | |
| tree | 9755e3cd17b982bd443b619d4691e9b4033a56e2 /parser_inline_test.go | |
| parent | 578f2c0b14003934faf897a2872ba92e432493ff (diff) | |
| download | asciidoctor-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.go | 9 |
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: "“A double quote”", + }, { + content: "'`A single quote without end.", + exp: "'`A single quote without end.", + }, { + content: "'` A single quote around space `'", + exp: "'` A single quote around space ’", + }, { + content: "\"`A single quote`\"", + exp: "“A single quote”", }} var buf bytes.Buffer |
