website/js/customElements/inline-code.js

9 lines
219 B
JavaScript
Raw Normal View History

2022-01-29 21:31:48 +01:00
class InlineCode extends HTMLElement {
constructor() {
super();
this.innerHTML = "<code class=\"language-text\">" + this.innerHTML + "</code>";
}
}
customElements.define("jl-code", InlineCode);