File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import { EnvironmentProviders , makeEnvironmentProviders , SecurityContext } from '@angular/core' ;
1
+ import { Provider , SecurityContext } from '@angular/core' ;
2
2
import { MarkdownModuleConfig } from './markdown.module' ;
3
3
import { MarkdownService , SECURITY_CONTEXT } from './markdown.service' ;
4
4
import { MARKED_EXTENSIONS } from './marked-extensions' ;
5
5
6
- export function provideMarkdown ( markdownModuleConfig ?: MarkdownModuleConfig ) : EnvironmentProviders {
7
- return makeEnvironmentProviders ( [
6
+ export function provideMarkdown ( markdownModuleConfig ?: MarkdownModuleConfig ) : Provider [ ] {
7
+ return [
8
8
MarkdownService ,
9
9
markdownModuleConfig ?. loader ?? [ ] ,
10
10
markdownModuleConfig ?. clipboardOptions ?? [ ] ,
@@ -17,5 +17,5 @@ export function provideMarkdown(markdownModuleConfig?: MarkdownModuleConfig): En
17
17
provide : SECURITY_CONTEXT ,
18
18
useValue : markdownModuleConfig ?. sanitize ?? SecurityContext . HTML ,
19
19
} ,
20
- ] ) ;
20
+ ] ;
21
21
}
You can’t perform that action at this time.
0 commit comments