mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-28 10:16:40 -05:00
components/help: use bold for command name only
This commit is contained in:
parent
5e34067d38
commit
6692ed0035
1 changed files with 3 additions and 3 deletions
|
@ -40,13 +40,13 @@ function CommandsHelp() {
|
|||
let l = Object.keys(commands).map((name) => {
|
||||
let cmd = commands[name];
|
||||
|
||||
let usage = "/" + name;
|
||||
let usage = [html`<strong>/${name}</strong>`];
|
||||
if (cmd.usage) {
|
||||
usage += " " + cmd.usage;
|
||||
usage.push(" " + cmd.usage);
|
||||
}
|
||||
|
||||
return html`
|
||||
<dt><strong><code>${usage}</code></strong></dt>
|
||||
<dt><code>${usage}</code></dt>
|
||||
<dd>${cmd.description}</dd>
|
||||
`;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue