processing / p5.js-website

New p5.js website!
http://p5js.org
MIT License
19 stars 89 forks source link

Fixed inline code rendering issue in `curveVertex` #481

Closed DenisovichDev closed 3 months ago

DenisovichDev commented 3 months ago

Hello, this is my first PR here!

I noticed some inline code issues that might have popped up because of some porting issues from the old website. This is what it looked like: image

Here's what it looks like now: image

These were some special cases in the reference where it wasn't a code snippet but a multiline inline codes.

davepagurek commented 3 months ago

Thanks @DenisovichDev! The reference gets updated every release from the contents in the p5.js repo, so I think we'll need to update the source there to not get turned back into multiple lines. I fixed a similar issue in the p5.js repo here https://github.com/processing/p5.js/pull/7089/files, does that method also apply to these functions?

Within this repo, I think rather than having inline code blocks separated by newlines, we might want to just group everything into one code block. That ends up looking like this: https://github.com/processing/p5.js-website/pull/407/files#diff-a9f22d63312d5dcf8286875d13c5ca83ee171d6bb92a2a21b8c50b7090771010R55

DenisovichDev commented 3 months ago

Thanks for the reply! I suppose that would fix it. So, shall I make a pull request changing the docstring in the p5.js repo?

And for this repo, I'll make the changes that you mentioned then, by grouping it with the \

 tags

davepagurek commented 3 months ago

Sounds good, thanks so much!

DenisovichDev commented 3 months ago

While editing the reference from p5.js repo I noticed a similar issue in normal() as well, so I have made the changes and added it here