Skip to content

Commit 589d269

Browse files
committed
added solution link
1 parent 8d50a2f commit 589d269

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/webview/leetCodePreviewProvider.ts

+3-3
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 | [Discuss](${url.replace("/description/", "/discuss/?currentPage=1&orderBy=most_votes&query=")}) |`,
77-
`| :------: | :--------: | :---: | :------: | :-----: |`,
78-
`| ${category} | ${difficulty} | ${likes} | ${dislikes} | -- |`,
76+
`| Category | Difficulty | Likes | Dislikes | [Discuss](${url.replace("/description/", "/discuss/?currentPage=1&orderBy=most_votes&query=")}) | [Solution](${url.replace("/description/", "/solution/")}) |`,
77+
`| :------: | :--------: | :---: | :------: | :-----: | :------: |`,
78+
`| ${category} | ${difficulty} | ${likes} | ${dislikes} | -- | -- |`,
7979
].join("\n"));
8080
const tags: string = [
8181
`<details>`,

0 commit comments

Comments
 (0)