diff options
| author | Shulhan <ms@kilabit.info> | 2020-12-25 16:19:53 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2020-12-25 16:19:53 +0700 |
| commit | e39ff0f9ee29f290fcd5eedb94309db71fa78d25 (patch) | |
| tree | 1749e282887f050f6b460a3e17a28f94aa5b8ba5 /inline_parser.go | |
| parent | 707d145f0883d22096a0effbc712176a70b46adf (diff) | |
| download | asciidoctor-go-e39ff0f9ee29f290fcd5eedb94309db71fa78d25.tar.xz | |
inline_parser: add zero-width space after ellipsis character
This is to make it compatible with generated HTML from asciidoctor.
Diffstat (limited to 'inline_parser.go')
| -rw-r--r-- | inline_parser.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/inline_parser.go b/inline_parser.go index 10b11d1..cf1b392 100644 --- a/inline_parser.go +++ b/inline_parser.go @@ -331,6 +331,7 @@ func (pi *inlineParser) do() { } if pi.nextc == '.' && pi.nextcc == '.' { pi.current.WriteString(htmlSymbolEllipsis) + pi.current.WriteString(htmlSymbolZeroWidthSpace) pi.x += 3 pi.prev = pi.c continue |
