-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Page is empty on specific Content #253
Comments
I noticed this issue too. It seems to be caused by the length of the JSON content |
@saleem-hadad I want to create a PR to fix this issue, but I'm not sure where to look. Do you know which file I should start with? This is what I see on my documentation site. Seems as if your JSON content is too long, it doesn't display for some reason. 😕 |
The problem here, https://github.com/saleem-hadad/larecipe/blob/master/src/Traits/HasBladeParser.php#L58-L71 /**
* Replace code blocks with a placeholder string.
*
* @param $content
* @return string|string[]|null
*/
private function stripCodeBlocks($content)
{
return preg_replace(
config('larecipe.blade-parser.regex.code-blocks.match'),
config('larecipe.blade-parser.regex.code-blocks.replacement'),
$content
);
} |
Describe the bug
the *.md Page is empty if a specific Content is provided.
To Reproduce
Steps to reproduce the behavior:
Notes
If I remove one of the first Code Chars like:
''json
instead of'''json
then it shows the Content but the Code Formating is gone then.With Version 2.2 it worked.
Expected behavior
Page should never be empty or show an Error.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: