-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix(image): filter null magic blocks #158
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff is significantly more readable with whitespace changes ignored: https://github.com/readmeio/markdown/pull/158/files?diff=unified&w=1
👍 lgtm, nice catch.
const img = imgs[0]; | ||
|
||
if (!img.url) return eat(match); | ||
if (!img || !img.url) return eat(match); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason I cracked UP at the fact that we have a function called eat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahahahahahahaha, missed this comment.
This PR was released!🚀 Changes included in v6.27.1-next.1 |
## Version 6.27.1 ### 🛠 Fixes & Updates * **image:** filter null magic blocks ([#158](#158)) ([603e0b5](603e0b5)) * fix release (not all masters are mains) ([0f5a8e9](0f5a8e9)) * fix release branch ([345e44f](345e44f)) * **tables:** fix tables overflowing divs and unaligned borders ([#160](#160)) ([aa5fc94](aa5fc94)) * trigger release ([b7349c2](b7349c2)) <!--SKIP CI-->
This PR was released!🚀 Changes included in v6.27.1 |
🧰 Changes
In certain, very specific scenarios, empty magic image blocks would throw an error on parse:
img
list for empty entries.🧬 QA & Testing
Working in this PR app.