mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
- Updated package.json to include dependencies for rehype and remark plugins for markdown processing. - Added default highlight.js CSS for code highlighting. - Included KaTeX CSS for rendering mathematical expressions. - Created markdown.css for styling markdown content in the Obsidian plugin, incorporating styles for headings, paragraphs, lists, tables, and code blocks. - Customized highlight.js colors to match Obsidian theme.
373 lines
No EOL
8.6 KiB
CSS
373 lines
No EOL
8.6 KiB
CSS
/* KaTeX CSS with CDN font URLs */
|
|
@font-face {
|
|
font-family: 'KaTeX_AMS';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Caligraphic';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Bold.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Caligraphic';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Caligraphic-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Fraktur';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Bold.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Fraktur';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Fraktur-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Main';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Main-Bold.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Main';
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Main-Italic.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Main';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Main-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Math';
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Math-Italic.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_SansSerif';
|
|
font-style: normal;
|
|
font-weight: 700;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Bold.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_SansSerif';
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Italic.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_SansSerif';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_SansSerif-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Script';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Script-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Size1';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Size1-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Size2';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Size2-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Size3';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Size3-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Size4';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Size4-Regular.woff') format('woff');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'KaTeX_Typewriter';
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
src: url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.woff2') format('woff2'),
|
|
url('https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_Typewriter-Regular.woff') format('woff');
|
|
}
|
|
|
|
/* Rest of KaTeX CSS styles */
|
|
.katex {
|
|
font: normal 1.21em KaTeX_Main, Times, serif;
|
|
line-height: 1.2;
|
|
white-space: nowrap;
|
|
text-indent: 0;
|
|
text-rendering: auto;
|
|
}
|
|
|
|
.katex * {
|
|
border-color: currentColor;
|
|
}
|
|
|
|
.katex .katex-version::after {
|
|
content: "0.16.0";
|
|
}
|
|
|
|
.katex .katex-mathml {
|
|
position: absolute;
|
|
visibility: hidden;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.katex .katex-html > .newline {
|
|
display: block;
|
|
}
|
|
|
|
.katex .base {
|
|
position: relative;
|
|
white-space: nowrap;
|
|
width: min-content;
|
|
}
|
|
|
|
.katex .strut {
|
|
display: inline-block;
|
|
}
|
|
|
|
.katex .textbf {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.katex .textit {
|
|
font-style: italic;
|
|
}
|
|
|
|
.katex .textrm {
|
|
font-family: KaTeX_Main;
|
|
}
|
|
|
|
.katex .textsf {
|
|
font-family: KaTeX_SansSerif;
|
|
}
|
|
|
|
.katex .texttt {
|
|
font-family: KaTeX_Typewriter;
|
|
}
|
|
|
|
.katex .mathnormal {
|
|
font-family: KaTeX_Math;
|
|
font-style: italic;
|
|
}
|
|
|
|
.katex .mathit {
|
|
font-family: KaTeX_Main;
|
|
font-style: italic;
|
|
}
|
|
|
|
.katex .mathrm {
|
|
font-style: normal;
|
|
}
|
|
|
|
.katex .mathbf {
|
|
font-family: KaTeX_Main;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.katex .boldsymbol {
|
|
font-family: KaTeX_Math;
|
|
font-weight: bold;
|
|
font-style: italic;
|
|
}
|
|
|
|
.katex .amsrm {
|
|
font-family: KaTeX_AMS;
|
|
}
|
|
|
|
.katex .mathbb,
|
|
.katex .textbb {
|
|
font-family: KaTeX_AMS;
|
|
}
|
|
|
|
.katex .mathcal {
|
|
font-family: KaTeX_Caligraphic;
|
|
}
|
|
|
|
.katex .mathfrak,
|
|
.katex .textfrak {
|
|
font-family: KaTeX_Fraktur;
|
|
}
|
|
|
|
.katex .mathtt {
|
|
font-family: KaTeX_Typewriter;
|
|
}
|
|
|
|
.katex .mathscr,
|
|
.katex .textscr {
|
|
font-family: KaTeX_Script;
|
|
}
|
|
|
|
.katex .mathsf,
|
|
.katex .textsf {
|
|
font-family: KaTeX_SansSerif;
|
|
}
|
|
|
|
.katex .mathboldsf,
|
|
.katex .textboldsf {
|
|
font-family: KaTeX_SansSerif;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.katex .mathitsf,
|
|
.katex .textitsf {
|
|
font-family: KaTeX_SansSerif;
|
|
font-style: italic;
|
|
}
|
|
|
|
.katex .mainrm {
|
|
font-family: KaTeX_Main;
|
|
font-style: normal;
|
|
}
|
|
|
|
.katex .vlist-t {
|
|
display: inline-table;
|
|
table-layout: fixed;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.katex .vlist-r {
|
|
display: table-row;
|
|
}
|
|
|
|
.katex .vlist {
|
|
display: table-cell;
|
|
vertical-align: bottom;
|
|
position: relative;
|
|
}
|
|
|
|
.katex .vlist > span {
|
|
display: block;
|
|
height: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.katex .vlist > span > span {
|
|
display: inline-block;
|
|
}
|
|
|
|
.katex .vlist > span > .pstrut {
|
|
overflow: hidden;
|
|
width: 0;
|
|
}
|
|
|
|
.katex .hlist {
|
|
display: inline-flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.katex .hlist > span {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.katex .vcenter {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.katex .alignleft {
|
|
text-align: left;
|
|
}
|
|
|
|
.katex .aligncenter {
|
|
text-align: center;
|
|
}
|
|
|
|
.katex .alignright {
|
|
text-align: right;
|
|
}
|
|
|
|
.katex .gothfrak,
|
|
.katex .textgothfrak {
|
|
font-family: KaTeX_Fraktur;
|
|
}
|
|
|
|
.katex .cmr {
|
|
font-family: KaTeX_Main;
|
|
}
|
|
|
|
.katex .cmss {
|
|
font-family: KaTeX_SansSerif;
|
|
}
|
|
|
|
.katex .cmtt {
|
|
font-family: KaTeX_Typewriter;
|
|
}
|
|
|
|
.katex .katex-display {
|
|
display: block;
|
|
margin: 1em 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.katex .katex-display > .katex {
|
|
display: block;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
text-align: initial;
|
|
}
|
|
|
|
.katex .katex-display.leqno > .katex {
|
|
text-align: left;
|
|
}
|
|
|
|
.katex .katex-display.fleqn > .katex {
|
|
text-align: left;
|
|
padding-left: 2em;
|
|
} |