Skip to content

Commit 589d140

Browse files
maurerleskorpy2009
authored andcommitted
fix rendering of html in deprecation_text
1 parent e6f1d6e commit 589d140

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/infobox/node.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,13 @@ export function Node(el: HTMLElement, node: NodeData, linkScale: (t: any) => any
226226
if (showDeprecation) {
227227
// Add deprecation warning to the container
228228
newContainer.children.push(
229-
h("div", { props: { className: "deprecated" } }, [h("div", config.deprecation_text || _.t("deprecation"))]),
229+
h("div", { props: { className: "deprecated" } }, [
230+
h("div", {
231+
props: {
232+
innerHTML: config.deprecation_text || _.t("deprecation"),
233+
},
234+
}),
235+
]),
230236
);
231237
}
232238

0 commit comments

Comments
 (0)