Commit 69e2f0c115c48ec2f183a12cab8de4bcd02f485a

Authored by Igor Kulikov
1 parent 0a3ac0f7

Fix marked options service - use single instance

@@ -24,7 +24,9 @@ const copyCodeBlock = '{:copy-code}'; @@ -24,7 +24,9 @@ const copyCodeBlock = '{:copy-code}';
24 const targetBlankBlock = '{:target="_blank"}'; 24 const targetBlankBlock = '{:target="_blank"}';
25 25
26 // @dynamic 26 // @dynamic
27 -@Injectable() 27 +@Injectable({
  28 + providedIn: 'root'
  29 +})
28 export class MarkedOptionsService extends MarkedOptions { 30 export class MarkedOptionsService extends MarkedOptions {
29 31
30 renderer = new MarkedRenderer(); 32 renderer = new MarkedRenderer();