From d3e8ab2e39dcc27853b163079f4a82364286fe82 Mon Sep 17 00:00:00 2001 From: Matt Riggott Date: Wed, 15 Jan 2020 09:32:45 +0000 Subject: 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. --- markup/goldmark/convert_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'markup') 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.1`) c.Assert(got, qt.Contains, `
`) c.Assert(got, qt.Contains, `
date
`) -- cgit v1.2.3