-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Missing line breaks in code snippet #166
Comments
Thanks for bringing this to my attention! Looks it's unintentional behavior and I'm going to look into soon.
It's fixed on v3.4.2: https://github.com/hmsk/frontmatter-markdown-loader/releases/tag/v3.4.2 😉 |
Released a quickfix as a beta |
Many thanks for you fast quickfix 😍! It worked with simple situations. However I got an error with the following file
I saw your quickfix, I feel like you loader should rely on an HTML parser (I think I read a comment stating that you tried to avoid adding such dependency). |
Thanks for confirming! |
Released v3.6.0 https://github.com/hmsk/frontmatter-markdown-loader/releases/tag/v3.6.0 Additionally, I fixed another |
Many thanks for your loader 🙏!
I tried to add code snippets into some on my .md documents in a NextJS project and statically exported site. These snippets are not properly rendered. More precisely line breaks are, somehow removed and the full content get displayed on a single line.
I tried to dig into your loader and markdownIt but I got lost.
Have you ever heard about similar issue with NextJs and code snippets?
Would you have insights to share and helpp me troubleshoot that limitation?
Many thanks,
Working example:
File:
https://github.com/mes-aides/simulateur/blob/demo-break-code/contribuer/content/home.md
Render:
https://deploy-preview-48--mes-aides.netlify.app/
Project root:
https://github.com/mes-aides/simulateur/tree/demo-break-code/contribuer
(Another file:
https://github.com/mes-aides/simulateur/blob/demo-break-code/contribuer/content/tasks/ajouter-une-aide.md#v%C3%A9rifier-que-votre-environnement-est-fonctionnel---12-minutes-max
Render:
https://deploy-preview-48--mes-aides.netlify.app/tasks/ajouter-une-aide
In H2 « Préparer l'environnement de travail - 10 minutes max », H3 « Vérifier que votre environnement est fonctionnel - 12 minutes max »
)
(Plus I have a React warning, Warning: Invalid DOM property
class
. Did you meanclassName
? but that's may be unrelated).The text was updated successfully, but these errors were encountered: