diff highlighting

pull/5189/head
Rich Harris 4 years ago
parent 4b7c16e33a
commit fb8bab8164

@ -1281,9 +1281,9 @@
} }
}, },
"@sveltejs/site-kit": { "@sveltejs/site-kit": {
"version": "1.2.0", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/@sveltejs/site-kit/-/site-kit-1.2.0.tgz", "resolved": "https://registry.npmjs.org/@sveltejs/site-kit/-/site-kit-1.2.1.tgz",
"integrity": "sha512-C7puq+1so3fKPPZAnQJQlKfyCG6FsnSSFSS2LRIhWD8VK2FL5j8Eq7DIKSxUvWbGw1AsxnzO3dIHJWPB7fwjKg==", "integrity": "sha512-5AhOCBcproHF5UbmuOIB9CiyAmG6BXOr2G4EjeeDz/tyo9myfnRKIgJSy26q8Zlw6TOlwxhzcAgvL5sgZF+IsA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@sindresorhus/slugify": "^0.9.1", "@sindresorhus/slugify": "^0.9.1",

@ -36,7 +36,7 @@
"@babel/preset-env": "^7.6.0", "@babel/preset-env": "^7.6.0",
"@babel/runtime": "^7.6.0", "@babel/runtime": "^7.6.0",
"@sindresorhus/slugify": "^0.9.1", "@sindresorhus/slugify": "^0.9.1",
"@sveltejs/site-kit": "^1.2.0", "@sveltejs/site-kit": "^1.2.1",
"@sveltejs/svelte-repl": "^0.2.0", "@sveltejs/svelte-repl": "^0.2.0",
"degit": "^2.1.4", "degit": "^2.1.4",
"dotenv": "^8.1.0", "dotenv": "^8.1.0",

@ -1,6 +1,7 @@
import { langs } from '@sveltejs/site-kit/utils/markdown.js'; import { langs } from '@sveltejs/site-kit/utils/markdown.js';
import PrismJS from 'prismjs'; import PrismJS from 'prismjs';
import 'prismjs/components/prism-bash'; import 'prismjs/components/prism-bash';
import 'prismjs/components/prism-diff';
import 'prism-svelte'; import 'prism-svelte';
export function highlight(source, lang) { export function highlight(source, lang) {

Loading…
Cancel
Save