mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
add ui
This commit is contained in:
1 parent
777a4bc927
commit
9c45527522
396 files changed
+13772
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { AutoloadPage } from 'vj/misc/PageLoader';
|
||||
|
||||
import 'katex/dist/katex.min.css';
|
||||
import './katex.styl';
|
||||
|
||||
const katexPage = new AutoloadPage('katexPage', () => {
|
||||
import('katex/dist/contrib/auto-render.min.js').then((renderKatex) => {
|
||||
function runKatex($containers) {
|
||||
$containers.get().forEach(container => renderKatex(container));
|
||||
}
|
||||
runKatex($('.typo'));
|
||||
$(document).on('vjContentNew', e => runKatex($(e.target).find('.typo')));
|
||||
});
|
||||
});
|
||||
|
||||
export default katexPage;
|
||||
@@ -0,0 +1,2 @@
|
||||
.katex
|
||||
font-size: 1em
|
||||
Reference in new issue
Block a user