Skip to content

Commit

Permalink
Improve Markdown Formatting (#33)
Browse files Browse the repository at this point in the history
* Improve Markdown Formatting

* Improve Markdown Formatting
  • Loading branch information
melloware authored Aug 16, 2024
1 parent f5f8bcc commit d327e3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function registerHoverProvider(languageSelector: string): Disposable {
}

const contents = new MarkdownString();
contents.appendMarkdown(componentItem.component.description);
contents.appendMarkdown(`**${componentName}:** ${componentItem.component.description}`);
contents.isTrusted = true;
contents.supportHtml = true;
return new Hover(contents, new Range(position, position));
Expand All @@ -374,9 +374,9 @@ function registerHoverProvider(languageSelector: string): Disposable {
const attr = componentItem.component.attributes.filter((attribute) => attribute.name == word)[0];

const contents = new MarkdownString();
contents.appendMarkdown(attr.description + '\n\n');
contents.appendMarkdown(`Required: ${attr.required}\n\n`);
contents.appendMarkdown(`Type: ${attr.type}\n\n`);
contents.appendMarkdown(`**${attr.name}:** ${attr.description}\n\n`);
contents.appendMarkdown(`**Required:** ${attr.required}\n\n`);
contents.appendMarkdown(`**Type:** ${attr.type}\n\n`);
contents.isTrusted = true;
contents.supportHtml = true;
return new Hover(contents, new Range(position, position));
Expand Down

0 comments on commit d327e3d

Please sign in to comment.