Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

songololo
Copy link

@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

github-actions bot commented Jul 1, 2021

No JS Changes

Generated by 🚫 dangerJS against 4321ef6

@RunDevelopment
Copy link
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.

None yet

2 participants