Skip to content

Commit 0632e0a

Browse files
authored
Merge pull request #24839 from github/repo-sync
repo sync
2 parents ebef62c + f6b611e commit 0632e0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/actions-scripts/rendered-content-link-checker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,9 +1186,11 @@ async function renderInnerHTML(page, permalink) {
11861186

11871187
req.context.relativePath = page.relativePath
11881188

1189+
const guts = [page.rawIntro, page.rawPermissions, page.markdown].filter(Boolean).join('\n').trim()
1190+
11891191
// These lines do what the ubiquitous `renderContent` function does,
11901192
// but at an absolute minimum to get a string of HTML.
1191-
const markdown = await liquid.parseAndRender(page.markdown, req.context)
1193+
const markdown = await liquid.parseAndRender(guts, req.context)
11921194
const processor = createMinimalProcessor(req.context)
11931195
const vFile = await processor.process(markdown)
11941196
return vFile.toString()

0 commit comments

Comments
 (0)