Skip to content

Commit b5c0e9e

Browse files
committed
process listings early to allow content div to be affected
by other post processors
1 parent 0a73f3d commit b5c0e9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/project/types/website/website.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ export const websiteProjectType: ProjectType = {
191191
const listingPostProcessor =
192192
htmlListingDependencies[kHtmlPostprocessors];
193193
if (listingPostProcessor) {
194-
extras.html[kHtmlPostprocessors]?.push(listingPostProcessor);
194+
// Process listings early so if we inject content div, navigation and other
195+
// elements will wrap around
196+
extras.html[kHtmlPostprocessors]?.unshift(listingPostProcessor);
195197
}
196198

197199
const listingAfterBody = htmlListingDependencies[kMarkdownAfterBody];

0 commit comments

Comments
 (0)