From 6eed72157959db4c465c91ed82a5c7de2e78fa5e Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Tue, 22 Sep 2020 12:46:12 -0400 Subject: [PATCH] Use lang attributes in help pane section titles --- modules/ui/panes/help.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/panes/help.js b/modules/ui/panes/help.js index 16cfcbccd..be7cbf0cb 100644 --- a/modules/ui/panes/help.js +++ b/modules/ui/panes/help.js @@ -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(//g, '') .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) {