Closed birkjernstrom closed 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.
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 ☺️
Great for two purposes:
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