feat(editorial): add :Leet editorial command #230
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
arduinohatesme/leetcode.nvim!230
Loading…
Reference in a new issue
No description provided.
Delete branch "thecuriousone25/feat-editorial"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Open a problem's official solution article (editorial) in a floating popup, styled like
:Leet info/:Leet hints.What it does
question.editorial(slug)viaugcArticleOfficialSolutionArticleandquestion.playground(uuid)viaallPlaygroundCodes. Both tolerate null/missing GraphQLdataand malformed responses.Editorialpopup (leetcode-ui/popup/editorial.lua) with a self-contained markdown renderer (headings, lists, blockquotes, rules, fenced code, inline emphasis). Each editorial<iframe>playground embed is replaced inline with its actual code, fetched from the playground API, as a fenced code block. Content loads lazily on first open.config.auth.is_premium); every other case is fetched and falls back to "No editorial available" if declined, so public editorials on free problems still load.Usage
:Leet editorialwhile a problem is open.@kawre Can you please take a look at this?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.