Skip to content

Commit

Permalink
feat: adds classes to container and parent element in postprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Jan 20, 2022
1 parent bdb39ae commit 1390e2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ export default class StatBlockPlugin extends Plugin {
layout.name == toBuild?.statblock
) ?? this.defaultLayout;

el.addClass("statblock-plugin-container");
el.parentElement?.addClass("statblock-plugin-parent");

let statblock = new StatBlockRenderer(
el,
toBuild,
Expand Down

0 comments on commit 1390e2e

Please sign in to comment.