Skip to content

Commit 43fd39b

Browse files
committed
content: generateSocialEmbed: resolve to string in json mode
1 parent 899d837 commit 43fd39b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/content/dependencies/generateSocialEmbed.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,12 @@ export default {
4747
return JSON.stringify({
4848
author_name:
4949
(slots.headingContent
50-
? language.$('misc.socialEmbed.heading', {
51-
wikiName: data.shortWikiName,
52-
heading: slots.headingContent,
53-
})
50+
? html.resolve(
51+
language.$('misc.socialEmbed.heading', {
52+
wikiName: data.shortWikiName,
53+
heading: slots.headingContent,
54+
}),
55+
{normalize: 'string'})
5456
: undefined),
5557

5658
author_url:

0 commit comments

Comments
 (0)