Skip to content

Commit

Permalink
Fixes #266
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano committed Mar 3, 2023
1 parent 83358d6 commit 7b930ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

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

## [2.3.1] - 2023-03-02
- Fix issue [#77](https://github.com/intersystems/language-server/issues/77): Incorrect 'Class/Routine/Include file does not exist' Diagnostics after namespace switch
Expand Down
5 changes: 4 additions & 1 deletion server/src/utils/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import parameterTypes = require("../documentation/parameterTypes.json");

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

0 comments on commit 7b930ff

Please sign in to comment.