Skip to content

Commit

Permalink
fix: extension detail css issue
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Aug 3, 2022
1 parent 30e6947 commit b908061
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import MarkdownIt from 'markdown-it/dist/markdown-it';

@Component({
selector: 'eo-shadow-dom',
template: ` <div [innerHTML]="content"></div> `,
styles: [
`
template: `
<style>
img {
max-width: 600px;
}
`,
],
</style>
<div part="eo-shadow-dom" [innerHTML]="content"></div>
`,
encapsulation: ViewEncapsulation.ShadowDom,
})
export class ShadowDomEncapsulationComponent implements OnInit {
Expand All @@ -37,6 +37,7 @@ export class ShadowDomEncapsulationComponent implements OnInit {
constructor() {}

ngOnInit() {
console.log('markdow', this);
this.md = new MarkdownIt(this.options);
this.customLinkRender();
}
Expand Down

0 comments on commit b908061

Please sign in to comment.