Skip to content

check existence of document: static site generator breaking on nested code blocks#2975

Closed
songololo wants to merge 1 commit intoPrismJS:masterfrom
songololo:patch-1
Closed

check existence of document: static site generator breaking on nested code blocks#2975
songololo wants to merge 1 commit intoPrismJS:masterfrom
songololo:patch-1

Conversation

@songololo
Copy link
Copy Markdown

@songololo songololo commented Jul 1, 2021

I don't understand exactly what would have changed, but recently the gridsome static site generator started breaking when processing nested syntax code blocks. This presumably occurred with the latest release.

It can be fixed by adding a check for whether document exists in the current context.

See:
#2976
gridsome/gridsome#1524

…break on nested code blocks

I don't understand exactly what would have changed, but recently the `gridsome` static site generator started breaking when processing nested syntax code blocks. This presumbly occured with the latest release.

It can be fixed by adding a check for whether `document` exists in the current context.
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 1, 2021

No JS Changes

Generated by 🚫 dangerJS against 4321ef6

@RunDevelopment
Copy link
Copy Markdown
Member

Thank you for the PR @songololo!

However, this solution doesn't work for servers. I'm currently working on a solution and will make PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants