Use lang attributes in help pane section titles

This commit is contained in:
Quincy Morgan
2020-09-22 12:46:12 -04:00
parent df0b826386
commit 6eed721579
+3 -3
View File
@@ -248,8 +248,8 @@ export function uiPaneHelp(context) {
}, '');
return {
title: t(helpkey + '.title'),
html: marked(text.trim())
title: t.html(helpkey + '.title'),
content: marked(text.trim())
// use keyboard key styling for shortcuts
.replace(/<code>/g, '<kbd>')
.replace(/<\/code>/g, '<\/kbd>')
@@ -270,7 +270,7 @@ export function uiPaneHelp(context) {
content.property('scrollTop', 0);
helpPane.selection().select('.pane-heading h2').html(d.title);
body.html(d.html);
body.html(d.content);
body.selectAll('a')
.attr('target', '_blank');
menuItems.classed('selected', function(m) {