mirror of
https://github.com/wassname/template.git
synced 2026-09-09 11:38:29 +08:00
Fix linter warnings except for /transforms
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import katex from "katex";
|
||||
import { Mutating } from "../mixins/mutating.js"
|
||||
import { Template } from "../mixins/template.js"
|
||||
import katexCSS from "../../node_modules/katex/dist/katex.min.css"
|
||||
import katex from 'katex';
|
||||
import { Mutating } from '../mixins/mutating.js';
|
||||
import { Template } from '../mixins/template.js';
|
||||
import katexCSS from '../../node_modules/katex/dist/katex.min.css';
|
||||
|
||||
const T = Template("d-math", `
|
||||
const T = Template('d-math', `
|
||||
<style>
|
||||
|
||||
d-math[block] {
|
||||
@@ -20,8 +20,8 @@ ${katexCSS}
|
||||
export class DMath extends Mutating(T(HTMLElement)) {
|
||||
|
||||
renderContent() {
|
||||
const options = { displayMode: this.hasAttribute("block") };
|
||||
const container = this.root.querySelector("#katex-container");
|
||||
const options = { displayMode: this.hasAttribute('block') };
|
||||
const container = this.root.querySelector('#katex-container');
|
||||
katex.render(this.textContent, container, options);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user