@@ -146,6 +146,8 @@ func TestEmbeddedImageRenderHook(t *testing.T) {
146
146
-- config.toml --
147
147
baseURL = 'https://example.org/dir/'
148
148
disableKinds = ['home','rss','section','sitemap','taxonomy','term']
149
+ [markup.goldmark.extensions.typographer]
150
+ disable = true
149
151
[markup.goldmark.parser]
150
152
wrapStandAloneImageWithinParagraph = false
151
153
[markup.goldmark.parser.attribute]
@@ -174,7 +176,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAA
174
176
b .AssertFileContent ("public/p1/index.html" ,
175
177
`<img src="" alt="">` ,
176
178
`<img src="/dir/p1/pixel.png" alt="alt1">` ,
177
- `<img src="/dir/p1/pixel.png" alt="alt2-&<>&rsquo ;" title="&<>'">` ,
179
+ `<img src="/dir/p1/pixel.png" alt="alt2-&<>' ;" title="&<>'">` ,
178
180
`<img src="/dir/p1/pixel.png?a=b&c=d#fragment" alt="alt3">` ,
179
181
`<img src="/dir/p1/pixel.png" alt="alt4">` ,
180
182
)
@@ -185,7 +187,7 @@ iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAA
185
187
b .AssertFileContent ("public/p1/index.html" ,
186
188
`<img src="" alt="">` ,
187
189
`<img src="/dir/p1/pixel.png" alt="alt1">` ,
188
- `<img src="/dir/p1/pixel.png" alt="alt2-&<>&rsquo ;" title="&<>'">` ,
190
+ `<img src="/dir/p1/pixel.png" alt="alt2-&<>' ;" title="&<>'">` ,
189
191
`<img src="/dir/p1/pixel.png?a=b&c=d#fragment" alt="alt3" class="foo" id="bar">` ,
190
192
`<img src="/dir/p1/pixel.png" alt="alt4" id=""><script>alert()</script>">` ,
191
193
)
0 commit comments