-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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: renderer.code includes space at beginning of each line of code #1645
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/markedjs/markedjs/2i2a4afnt |
It looks like that test passes without the fix. Our tests use |
@UziTech Hi
done |
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.
I was thinking of adding an option like that to the spec tests 👍
The text should be fixed when creating the token instead of when rendering. If you merge the latest changes you can change the Lines 77 to 87 in 904c974
And you should inline the fix instead of adding a helper since the code is only going to run in one place. No need for the extra function call. |
@UziTech I don’t quite understand, does this relate exactly to my task? |
Yes, currently you are taking the text from the token and fixing it before sending it to the renderer. I'm suggesting that you fix the text before it goes into the token so we can still just take the text from the token and send it to the renderer without changing it. |
ok now understand, to save the contract |
@UziTech done |
If you merge the latest changes from master you will see a new file |
@UziTech done |
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.
almost ready
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.
Looks great. Thanks for sticking with it. 🎉
@styfle LGTM |
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.
Thanks!
Description
Contributor
Committer
In most cases, this should be a different person than the contributor.