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 |
UziTech
left a comment
There was a problem hiding this comment.
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 |
UziTech
left a comment
There was a problem hiding this comment.
Looks great. Thanks for sticking with it. 🎉
|
@styfle LGTM |
Description
Contributor
Committer
In most cases, this should be a different person than the contributor.