mirror of
https://github.com/wassname/template.git
synced 2026-07-24 13:20:06 +08:00
Merge branch 'v2' of github.com:distillpub/template into v2
This commit is contained in:
@@ -20,6 +20,18 @@ const T = Template('d-math', `
|
||||
display: block;
|
||||
}
|
||||
|
||||
#katex-container .katex-display {
|
||||
text-align: left;
|
||||
padding: 8px 0 8px 0;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
#katex-container .katex {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
color: rgba(0, 0, 0, 0.8);
|
||||
font-size: 1.18em;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
${katexCSSTag}
|
||||
@@ -78,6 +90,7 @@ export class DMath extends Mutating(T(HTMLElement)) {
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
super.connectedCallback();
|
||||
if (!DMath.katexAdded) {
|
||||
DMath.addKatex();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user