polarsource / polar

An Open Source Lemon Squeezy alternative with better pricing! Get paid coding on your passion.
https://polar.sh
Apache License 2.0
2.92k stars 120 forks source link

Show issue description in our issue page #1200

Closed birkjernstrom closed 1 year ago

birkjernstrom commented 1 year ago
Screenshot 2023-09-18 at 15 43 17

Great for two purposes:

  1. All context in one-place (better conversion)
  2. Capture SEO with context of funding
  3. Bonus: Looks nice and more professional

How it's supposed to work:

However, the last part can become incredibly tricky and we should progressively enhance it over time. E.g code highlighting, todos etc. For starters I think we can begin with a whitelist of only a few support types of markdown and filter out everything else. Cutting up until we reach the first point of non-supported markdown, e.g code example.

Upvote & Fund

Fund with Polar

frankie567 commented 1 year ago

Idea for the Markdown rendering problem: apparently, GitHub has an API for that: https://docs.github.com/en/rest/markdown/markdown?apiVersion=2022-11-28

Might be worth to check it out and see what's possible to do with it. If it works, we can cache the result on DB/Redis to save our token rate limits.

birkjernstrom commented 1 year ago

Oh wow that's awesome! Yes we should definitely leverage that to avoid reinventing the wheel + making it 1:1 with the source.

Yes, by using app installations for it upon issue updates/creation and overwriting a cache with no TTL - I don't think we'll ever get close of running into ratelimit issues (famous last words).

This made me excited ☺️