Skip to content

Commit

Permalink
Fix #14 and #15 in webview details
Browse files Browse the repository at this point in the history
  • Loading branch information
timheuer committed Jun 1, 2023
1 parent 60d8153 commit 3d7f6b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion media/vscode.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body {
font-family: var(--vscode-font-family);
background-color: var(--vscode-editor-background);
height: 100%;
overflow: hidden;
overflow: auto;
display: flex;
flex-direction: column;
margin: 0 auto;
Expand Down
3 changes: 3 additions & 0 deletions media/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const vscode = acquireVsCodeApi();

import { provideVSCodeDesignSystem, vsCodeButton, vsCodeTag, vsCodePanelTab, vsCodePanelView, vsCodePanels } from "@vscode/webview-ui-toolkit";
import { moveSyntheticComments } from "typescript";
provideVSCodeDesignSystem().register(vsCodeButton(), vsCodeTag(), vsCodePanelTab(), vsCodePanelView(), vsCodePanels());

window.addEventListener("load", main);
Expand All @@ -23,6 +24,7 @@ function main() {
// if directory path, extract it from the attribute
if (repoSourceType !== null && repoSourceType === "Directory") {
var md = window.markdownit();
md.options.html = true;
var result = md.render(markdownPath);
markdownDiv.innerHTML = result;
}
Expand All @@ -31,6 +33,7 @@ function main() {
.then(response => response.text())
.then(data => {
var md = window.markdownit();
md.options.html = true;
var result = md.render(data.toString());
markdownDiv.innerHTML = result;
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mympclient",
"displayName": "My Marketplace",
"description": "Client for My Marketplace private extension",
"version": "0.1.4",
"version": "0.1.5",
"icon": "resources/marketplace.png",
"repository": {
"type": "git",
Expand Down

0 comments on commit 3d7f6b4

Please sign in to comment.