Skip to content

Commit

Permalink
Alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
chaichontat committed Jul 11, 2024
1 parent fb47edb commit 27ad168
Show file tree
Hide file tree
Showing 4 changed files with 5,252 additions and 44 deletions.
2 changes: 2 additions & 0 deletions mdsvex.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import rehypeKatex from "rehype-katex-svelte";
import remarkGfm from "remark-gfm";
import rehypeLazyLoad from "rehype-plugin-image-native-lazy-loading";
import relativeImages from "mdsvex-relative-images";
import {rehypeGithubAlerts} from "rehype-github-alerts";

function katexMacros() {
const out = {};
Expand Down Expand Up @@ -48,6 +49,7 @@ const config = defineConfig({
[rehypeToc, { headings: ["h1", "h2", "h3"], cssClasses: { toc: "toc not-prose", link: "toc-link" } }],
rehypeFigure, // Add figcaption from alt text.
rehypeLazyLoad,
rehypeGithubAlerts
// [rehypeAutolinkHeadings, { behavior: "wrap", test: ["h1", "h2", "h3"] }],
],
});
Expand Down
90 changes: 46 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,68 +13,70 @@
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
},
"devDependencies": {
"@citation-js/core": "^0.6.8",
"@citation-js/plugin-bibtex": "^0.6.8",
"@citation-js/plugin-csl": "^0.6.8",
"@citation-js/plugin-doi": "^0.6.8",
"@citation-js/core": "^0.7.14",
"@citation-js/plugin-bibtex": "^0.7.14",
"@citation-js/plugin-csl": "^0.7.14",
"@citation-js/plugin-doi": "^0.7.14",
"@rgossiaux/svelte-headlessui": "^2.0.0",
"@sveltejs/adapter-static": "^2.0.2",
"@sveltejs/kit": "^1.22.3",
"@tailwindcss/forms": "^0.5.4",
"@tailwindcss/typography": "^0.5.9",
"@types/colormap": "^2.3.1",
"@types/d3": "^7.4.0",
"@types/katex": "^0.16.1",
"@types/lodash-es": "^4.17.8",
"@types/pako": "^2.0.0",
"@types/papaparse": "^5.3.7",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"autoprefixer": "^10.4.14",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.0.0",
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.5.18",
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"@types/colormap": "^2.3.4",
"@types/d3": "^7.4.3",
"@types/katex": "^0.16.7",
"@types/lodash-es": "^4.17.12",
"@types/pako": "^2.0.3",
"@types/papaparse": "^5.3.14",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-svelte3": "^4.0.0",
"katex": "^0.16.8",
"markdownlint": "^0.29.0",
"mdsvex": "^0.11.0",
"postcss": "^8.4.27",
"postcss-load-config": "^4.0.1",
"prettier": "^3.0.0",
"prettier-plugin-svelte": "^3.0.0",
"prettier-plugin-tailwindcss": "^0.4.1",
"katex": "^0.16.11",
"markdownlint": "^0.34.0",
"mdsvex": "^0.11.2",
"postcss": "^8.4.39",
"postcss-load-config": "^6.0.1",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.6.5",
"prismjs": "^1.29.0",
"rehype-autolink-headings": "^6.1.1",
"rehype-citation": "^1.0.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-citation": "^2.0.0",
"rehype-figure": "^1.0.1",
"rehype-katex-svelte": "^1.2.0",
"rehype-plugin-image-native-lazy-loading": "^1.2.0",
"rehype-slug": "^5.1.0",
"rehype-slug": "^6.0.0",
"rehype-toc": "^3.0.2",
"remark-abbr": "^1.4.1",
"remark-captions": "^2.2.3",
"remark-gfm": "^3.0.1",
"remark-math": "^2.0.1",
"remark-abbr": "^1.4.2",
"rehype-github-alerts": "^3.0.0",
"remark-captions": "^2.2.4",
"remark-gfm": "^4.0.0",
"remark-math": "2.0.1",
"slugify": "^1.6.6",
"svelte": "^3.47",
"svelte-check": "^3.4.6",
"svelte-preprocess": "^5.0.4",
"tailwindcss": "^3.3.3",
"tslib": "^2.6.0",
"typescript": "~5.1.6",
"svelte": "^4.2.18",
"svelte-check": "^3.8.4",
"svelte-preprocess": "^6.0.2",
"tailwindcss": "^3.4.4",
"tslib": "^2.6.3",
"typescript": "~5.5.3",
"unist-util-visit": "^5.0.0",
"vite": "^4.4.6"
"vite": "^5.3.3"
},
"type": "module",
"dependencies": {
"@observablehq/plot": "github:chaichontat/plot",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"colormap": "^2.3.2",
"d3": "^7.8.5",
"d3": "^7.9.0",
"fzf": "^0.5.2",
"lodash-es": "^4.17.21",
"mdsvex-relative-images": "^1.0.3",
"pako": "^2.1.0",
"papaparse": "^5.4.1",
"tippy.js": "^6.3.7"
}
}
}
Loading

0 comments on commit 27ad168

Please sign in to comment.