Skip to content

Commit 5e51132

Browse files
fuafajdneo
authored andcommitted
Add discuss link (LeetCode-OpenSource#421)
1 parent d0f23e5 commit 5e51132

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/webview/leetCodePreviewProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ class LeetCodePreviewProvider extends LeetCodeWebview {
7373
const { title, url, category, difficulty, likes, dislikes, body } = this.description;
7474
const head: string = markdownEngine.render(`# [${title}](${url})`);
7575
const info: string = markdownEngine.render([
76-
`| Category | Difficulty | Likes | Dislikes |`,
77-
`| :------: | :--------: | :---: | :------: |`,
78-
`| ${category} | ${difficulty} | ${likes} | ${dislikes} |`,
76+
`| Category | Difficulty | Likes | Dislikes | [Discuss](${url.replace("/description/", "/discuss/?currentPage=1&orderBy=most_votes&query=")}) |`,
77+
`| :------: | :--------: | :---: | :------: | :-----: |`,
78+
`| ${category} | ${difficulty} | ${likes} | ${dislikes} | -- |`,
7979
].join("\n"));
8080
const tags: string = [
8181
`<details>`,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy