Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update deps #3

Merged
merged 7 commits into from
Jun 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"reAttach": true,
"name": "Launch localhost",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}"
}
]
}
],
}
13 changes: 12 additions & 1 deletion mdsvex.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import remarkGithub from 'remark-github';
import remarkAbbr from 'remark-abbr';
import remarkHeadings from '@vcarl/remark-headings';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import { defineMDSveXConfig as defineConfig } from 'mdsvex';

function headings() {
return async function transformer(_tree, vFile) {
console.log("here")
if (!vFile.data.fm) vFile.data.fm = {};
vFile.data.fm.headings = vFile.data.headings;
};
};

const config = defineConfig({
extensions: ['.svelte.md', '.md', '.svx'],

Expand All @@ -12,13 +21,15 @@ const config = defineConfig({
},

remarkPlugins: [
remarkHeadings,
headings,
[
remarkGithub,
{
repository: 'https://github.com/suyashtnt/personal-website.git'
}
],
remarkAbbr
remarkAbbr,
],
rehypePlugins: [
rehypeSlug,
Expand Down
Loading