fix(mobile): katex render

This commit is contained in:
charlie
2025-06-09 16:33:20 +08:00
parent c3f9bbd633
commit edbd03f321
3 changed files with 13 additions and 1 deletions

View File

@@ -115,6 +115,8 @@ const common = {
'node_modules/katex/dist/fonts/*.woff2',
]).pipe(gulp.dest(path.join(outputPath, 'css', 'fonts'))),
() => gulp.src([
'node_modules/katex/dist/katex.min.js',
'node_modules/katex/dist/contrib/mhchem.min.js',
'node_modules/marked/marked.min.js',
'node_modules/@highlightjs/cdn-assets/highlight.min.js',
'node_modules/@isomorphic-git/lightning-fs/dist/lightning-fs.min.js',

View File

@@ -146,6 +146,16 @@ ion-content {
}
}
.latex.initial {
@apply pt-1;
.katex-html {
&[aria-hidden="true"] {
@apply hidden;
}
}
}
[type='text']:focus, [type='email']:focus, [type='url']:focus,
[type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus,
[type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus,

View File

@@ -106,7 +106,7 @@
publishing?
path
(util/file-protocol?)
(or (util/file-protocol?) (util/capacitor-new?))
(string/replace path "/static/" "./")
:else