Skip to content

Commit

Permalink
add latex support
Browse files Browse the repository at this point in the history
  • Loading branch information
AnubisNekhet committed Mar 11, 2024
1 parent 8d91f9d commit 2fd6bf3
Show file tree
Hide file tree
Showing 7 changed files with 104 additions and 0 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.css
24 changes: 24 additions & 0 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,25 @@ settings:
type: variable-number
default: 200
# File Editor & Markdown Elements :: LaTeX
-
id: anp-latex-header
title: LaTex
type: heading
level: 2
collapsed: true
-
id: anp-latex-color
title: LaTeX Color
type: variable-themed-color
description: Applies to LaTeX blocks
allowEmpty: true
format: hex
opacity: false
default-light: '#'
default-dark: '#'
# File Editor & Markdown Elements :: Lists
-
Expand Down Expand Up @@ -5224,6 +5243,11 @@ hr {
background-color: transparent;
}

/*-LaTeX-*/
.math {
color: var(--anp-latex-color, var(--text-normal));
}

.anp-toggle-metadata .frontmatter-container, .markdown-rendered.hide-metadata .frontmatter-container {
display: none;
}
Expand Down
31 changes: 31 additions & 0 deletions snippets/src/ext-colorschemes/flexoki-dark.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
$theme-flexoki-dark: (
ctp-rosewater: #F5E0DC,
ctp-flamingo: #F2CDCD,
ctp-pink: #F5C2E7,
ctp-mauve: #CBA6F7,
ctp-red: #F38BA8,
ctp-maroon: #EBA0AC,
ctp-peach: #FAB387,
ctp-yellow: #F9E2AF,
ctp-green: #A6E3A1,
ctp-teal: #94E2D5,
ctp-sky: #89DCEB,
ctp-sapphire: #74C7EC,
ctp-blue: #87B0F9,
ctp-lavender: #B4BEFE,
ctp-text: #cfcec4,
ctp-subtext1: #b3b1a8,
ctp-subtext0: #9e9c94,
ctp-overlay2: #888681,
ctp-overlay1: #7b7a74,
ctp-overlay0: #6F6E69,
ctp-surface2: #575653,
ctp-surface1: #403E3C,
ctp-surface0: #343331,
ctp-base: #1C1B1A,
ctp-mantle: #100F0F,
ctp-crust: #080707,
ctp-accent: #24837B,
theme-mode: "dark",
theme-name: "flexoki-dark",
);
19 changes: 19 additions & 0 deletions src/modules/Core/style-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,25 @@ settings:
type: variable-number
default: 200
# File Editor & Markdown Elements :: LaTeX
-
id: anp-latex-header
title: LaTex
type: heading
level: 2
collapsed: true
-
id: anp-latex-color
title: LaTeX Color
type: variable-themed-color
description: Applies to LaTeX blocks
allowEmpty: true
format: hex
opacity: false
default-light: '#'
default-dark: '#'
# File Editor & Markdown Elements :: Lists
-
Expand Down
1 change: 1 addition & 0 deletions src/modules/Markdown-Elements/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@import "headers.scss";
@import "hr.scss";
@import "lists.scss";
@import "latex.scss";
@import "metadata.scss";
@import "tables.scss";
@import "properties.scss";
4 changes: 4 additions & 0 deletions src/modules/Markdown-Elements/latex.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/*-LaTeX-*/
.math {
color: var(--anp-latex-color, var(--text-normal));
}
24 changes: 24 additions & 0 deletions theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,25 @@ settings:
type: variable-number
default: 200
# File Editor & Markdown Elements :: LaTeX
-
id: anp-latex-header
title: LaTex
type: heading
level: 2
collapsed: true
-
id: anp-latex-color
title: LaTeX Color
type: variable-themed-color
description: Applies to LaTeX blocks
allowEmpty: true
format: hex
opacity: false
default-light: '#'
default-dark: '#'
# File Editor & Markdown Elements :: Lists
-
Expand Down Expand Up @@ -5224,6 +5243,11 @@ hr {
background-color: transparent;
}

/*-LaTeX-*/
.math {
color: var(--anp-latex-color, var(--text-normal));
}

.anp-toggle-metadata .frontmatter-container, .markdown-rendered.hide-metadata .frontmatter-container {
display: none;
}
Expand Down

0 comments on commit 2fd6bf3

Please sign in to comment.