Skip to content

Commit

Permalink
fix some markEffects bugs (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored Apr 1, 2022
1 parent 852e2f2 commit e528ac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class Meta extends Builder {
static render(spec: Spec, node: HTMLElement) {
// This builder turns <emu-meta> tags that aren't removed during effect
// propagation on invocations into <span>s so they are rendered.
if (node.hasAttribute('effects')) {
if (node.hasAttribute('effects') && spec.opts.markEffects) {
const classNames = node
.getAttribute('effects')!
.split(',')
Expand Down
4 changes: 3 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ const build = debounce(async function build() {
extraBiblios: [],
toc: !args['no-toc'],
oldToc: !!args['old-toc'],
markEffects: !!args['mark-effects'],
lintSpec: !!args['lint-spec'],
assets: args.assets as 'none' | 'inline' | 'external',
};
if (args.verbose) {
opts.log = utils.logVerbose;
}
if (args['mark-effects']) {
opts.markEffects = true;
}
let warned = false;

for (let toResolve of args['load-biblio'] ?? []) {
Expand Down

0 comments on commit e528ac0

Please sign in to comment.