From 8461f78c034e03b81502b8a17dd9da4395838f5f Mon Sep 17 00:00:00 2001 From: Zhichao Jin Date: Wed, 15 Feb 2023 20:26:59 +0800 Subject: [PATCH] fix(note): parse the note in markdown - improve the style of the note - remove the notes and leading-trailing blank lines & spaces in program --- .vscodeignore | 3 +- src/webview/ptaPreviewProvider.ts | 71 +++++++++++-------------------- src/webview/views/ProblemView.ts | 27 ++++++++++++ 3 files changed, 54 insertions(+), 47 deletions(-) diff --git a/.vscodeignore b/.vscodeignore index 083d35c..66e8f17 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -15,4 +15,5 @@ test/** package-lock.json .github resources/pta_template -tmp/ \ No newline at end of file +tmp/ +*.vsix \ No newline at end of file diff --git a/src/webview/ptaPreviewProvider.ts b/src/webview/ptaPreviewProvider.ts index cbc7783..e7c727e 100644 --- a/src/webview/ptaPreviewProvider.ts +++ b/src/webview/ptaPreviewProvider.ts @@ -166,6 +166,12 @@ class PtaPreviewProvider extends PtaWebview { content: "Click to Copy"; z-index: 2; } + + .pta-note { + border: 1px solid var(--vscode-editor-foreground); + border-radius: 5px; + padding: 4px 16px; + }