diff options
author | Matt Riggott <flother@users.noreply.github.com> | 2020-01-15 12:32:45 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-01-15 14:07:25 +0300 |
commit | d3e8ab2e39dcc27853b163079f4a82364286fe82 (patch) | |
tree | 18b0f49b7687631e652b5c0ea770f4424137e3ee /markup/goldmark | |
parent | da814556567eab9ba0ac5fef5314c3ad5ee50ccd (diff) |
deps: Update Goldmark to v1.1.21
This is the first version of Goldmark that supports all the
Smartypants-style typographic punctuation transformations. Now, a
straight single quote in the middle of a word is translated into a curly
quote (e.g. "that's" becomes "that’s"). Earlier versions leave
them untouched. This brings Goldmark in line with Blackfriday.
Fixes #6571.
Diffstat (limited to 'markup/goldmark')
-rw-r--r-- | markup/goldmark/convert_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/markup/goldmark/convert_test.go b/markup/goldmark/convert_test.go index 31799b2a5..7714933fd 100644 --- a/markup/goldmark/convert_test.go +++ b/markup/goldmark/convert_test.go @@ -97,6 +97,7 @@ LINE1 * Straight double "quotes" and single 'quotes' into “curly” quote HTML entities * Dashes (“--” and “---”) into en- and em-dash entities * Three consecutive dots (“...”) into an ellipsis entity +* Apostrophes are also converted: "That was back in the '90s, that's a long time ago" ## Footnotes @@ -153,6 +154,7 @@ description c.Assert(got, qt.Contains, `Straight double “quotes” and single ‘quotes’`) c.Assert(got, qt.Contains, `Dashes (“–” and “—”) `) c.Assert(got, qt.Contains, `Three consecutive dots (“…”)`) + c.Assert(got, qt.Contains, `“That was back in the ’90s, that’s a long time ago”`) c.Assert(got, qt.Contains, `footnote.<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup>`) c.Assert(got, qt.Contains, `<section class="footnotes" role="doc-endnotes">`) c.Assert(got, qt.Contains, `<dt>date</dt>`) |