Skip to content

Commit 7b930ff

Browse files
committed
Fixes #266
1 parent 83358d6 commit 7b930ff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [2.3.2] - 2023-XX-XX
44
- Fix issue [#265](https://github.com/intersystems/language-server/issues/265): Support HTML spans in intellisense from class descriptions
5+
- Fix issue [#266](https://github.com/intersystems/language-server/issues/266): Preserve empty HTML spans in intellisense from class descriptions
56

67
## [2.3.1] - 2023-03-02
78
- Fix issue [#77](https://github.com/intersystems/language-server/issues/77): Incorrect 'Class/Routine/Include file does not exist' Diagnostics after namespace switch

server/src/utils/functions.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ import parameterTypes = require("../documentation/parameterTypes.json");
1515

1616
// Initialize turndown and tune it for Documatic HTML
1717
const TurndownService = require('turndown-ext').default;
18-
const turndown = new TurndownService({codeBlockStyle: "fenced"});
18+
const turndown = new TurndownService({
19+
codeBlockStyle: "fenced",
20+
blankReplacement: (content, node: HTMLElement) => node.nodeName == 'SPAN' ? node.outerHTML : ''
21+
});
1922
turndown.remove("style");
2023
turndown.keep(["span", "table", "tr", "td"]);
2124
turndown.addRule("pre",{

0 commit comments

Comments
 (0)