Skip to content

Commit 43462ff

Browse files
committed
Fixes for #254
1 parent aa13632 commit 43462ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/languageFacts/entry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function getEntryMarkdownDescription(entry: IEntry2, settings?: HoverSettings):
118118
if (typeof entry.description === 'string') {
119119
result += textToMarkedString(entry.description);
120120
} else {
121-
result += entry.type === MarkupKind.Markdown ? entry.description.value : textToMarkedString(entry.description.value);
121+
result += entry.description.kind === MarkupKind.Markdown ? entry.description.value : textToMarkedString(entry.description.value);
122122
}
123123

124124
const browserLabel = getBrowserLabel(entry.browsers);

src/test/css/customData.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ suite('CSS - Custom Data', async () => {
6464
resultText: 'body { foo: $0; }',
6565
documentation: {
6666
kind: 'markdown',
67-
value: 'Foo property\\. See link on \\[MDN\\]\\(https://developer\\.mozilla\\.org/en\\-US/\\)\\.\n\n[MDN Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/foo)'
67+
value: 'Foo property. See link on [MDN](https://developer.mozilla.org/en-US/).\n\n[MDN Reference](https://developer.mozilla.org/en-US/docs/Web/CSS/foo)'
6868
}
6969
}
7070
]

0 commit comments

Comments
 (0)