Skip to content

Embedded code has extra characters near dollar signs #244

@mfp22

Description

@mfp22

Describe the bug

I want to embed a code snippet from another file into a slide. It adds extra ticks `" near dollar signs $.

Samples to Reproduce

Try to embed this code snippet into a slide:

export class CounterService {
  count$ = new BehaviorSubject(1000);

  double$ = this.count$.pipe(map((count) => count * 2));
  triple$ = this.count$.pipe(map((count) => count * 3));

  combined$ = combineLatest([this.double$, this.triple$]).pipe(
    map(([double, triple]) => double + triple)
  );

  over9000$ = this.combined$.pipe(map((combined) => combined > 9000));

  message$ = this.over9000$.pipe(
    map((over9000) => (over9000 ? "It's over 9000!" : "It's under 9000."))
  );
}

And it shows up exactly like this instead:

export class CounterService {
  count$ = new BehaviorSubject(1000);

  double`$ = this.count$`.pipe(map((count) => count * 2));
  triple`$ = this.count$`.pipe(map((count) => count * 3));

  combined`$ = combineLatest([this.double$`, this.triple$]).pipe(
    map(([double, triple]) => double + triple)
  );

  over9000`$ = this.combined$`.pipe(map((combined) => combined > 9000));

  message`$ = this.over9000$`.pipe(
    map((over9000) => (over9000 ? "It's over 9000!" : "It's under 9000."))
  );
}

Expected behavior
The embedded code should appear exactly the same in the slide

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions