remove remark gfb
This commit is contained in:
parent
5402135fe1
commit
36a118c0b3
3 changed files with 37 additions and 42 deletions
75
package.json
75
package.json
|
|
@ -1,40 +1,39 @@
|
|||
{
|
||||
"name": "thomaswilson-sveltekit",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"dev": "svelte-kit dev",
|
||||
"build": "svelte-kit build",
|
||||
"package": "svelte-kit package",
|
||||
"preview": "svelte-kit preview",
|
||||
"prepare": "svelte-kit sync",
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
|
||||
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/adapter-netlify": "^1.0.0-next.51",
|
||||
"@sveltejs/kit": "next",
|
||||
"@types/sanitize-html": "^2.6.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
||||
"@typescript-eslint/parser": "^5.10.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-svelte3": "^3.2.1",
|
||||
"prettier": "^2.5.1",
|
||||
"prettier-plugin-svelte": "^2.5.0",
|
||||
"svelte": "^3.44.0",
|
||||
"svelte-check": "^2.2.6",
|
||||
"svelte-preprocess": "^4.10.1",
|
||||
"tslib": "^2.3.1",
|
||||
"typescript": "~4.6.2"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"date-fns": "^2.28.0",
|
||||
"mdsvex": "^0.10.5",
|
||||
"remark-gfm": "^3.0.1",
|
||||
"sanitize-html": "^2.7.0"
|
||||
}
|
||||
"name": "thomaswilson-sveltekit",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"dev": "svelte-kit dev",
|
||||
"build": "svelte-kit build",
|
||||
"package": "svelte-kit package",
|
||||
"preview": "svelte-kit preview",
|
||||
"prepare": "svelte-kit sync",
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
|
||||
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
|
||||
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/adapter-netlify": "^1.0.0-next.51",
|
||||
"@sveltejs/kit": "next",
|
||||
"@types/sanitize-html": "^2.6.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
||||
"@typescript-eslint/parser": "^5.10.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-plugin-svelte3": "^3.2.1",
|
||||
"prettier": "^2.5.1",
|
||||
"prettier-plugin-svelte": "^2.5.0",
|
||||
"svelte": "^3.44.0",
|
||||
"svelte-check": "^2.2.6",
|
||||
"svelte-preprocess": "^4.10.1",
|
||||
"tslib": "^2.3.1",
|
||||
"typescript": "~4.6.2"
|
||||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"date-fns": "^2.28.0",
|
||||
"mdsvex": "^0.10.5",
|
||||
"sanitize-html": "^2.7.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
import type { Post } from './Post';
|
||||
import { compile } from 'mdsvex';
|
||||
import { getPostsFromGlobResult } from './getPostsFromGlobResult';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
|
||||
export const fetchBlogPostBySlug = async (slug: string): Promise<Post | null> => {
|
||||
const globResult = await import.meta.glob('../content/**/*.md');
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import adapter from '@sveltejs/adapter-netlify';
|
|||
import preprocess from 'svelte-preprocess';
|
||||
|
||||
import { mdsvex } from 'mdsvex'
|
||||
import remarkGfm from 'remark-gfm'
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
|
|
@ -11,7 +10,6 @@ const config = {
|
|||
// for more information about preprocessors
|
||||
preprocess: [preprocess(), mdsvex({
|
||||
extensions: ['.md'],
|
||||
remarkPlugins: [remarkGfm]
|
||||
})],
|
||||
|
||||
kit: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue