Skip to content

Commit

Permalink
Slightly better rendering of traits and specials
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Mar 6, 2024
1 parent 75d1a0b commit 0b36971
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions statblockrenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ export class StatblockRenderer extends MarkdownRenderChild {

renderSimpleItem(trait: any) {
const traitEl = this.statblockEl.createDiv();
traitEl.createSpan({ cls: "em", text: `${trait.name}: ` });
traitEl.createSpan({ text: trait.description });
traitEl.createEl('h5', { cls: "em", text: `${trait.name}: ` });
const descriptionEl = traitEl.createDiv();
descriptionEl.innerHTML = trait.description;
}
}

Expand Down

0 comments on commit 0b36971

Please sign in to comment.