Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
tjheffner committed Jan 20, 2024
1 parent 9822a00 commit b90f50c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"@typescript-eslint/parser": "^4.33.0",
"autoprefixer": "^10.4.1",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte3": "^4.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte3": "^4.0.0",
"gray-matter": "^4.0.3",
"mdsvex": "^0.11.0",
"postcss": "^8.4.31",
"postcss-load-config": "^4.0.2",
"prettier": "~3.1.0",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.7",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.5.7",
"query-string": "^7.1.1",
"rehype-autolink-headings": "^6.1.1",
"rehype-format": "^3.1.0",
Expand All @@ -49,15 +49,15 @@
"satori": "^0.10.11",
"satori-html": "^0.3.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.2",
"svelte-preprocess": "^5.1.1",
"svelte-check": "^3.6.2",
"svelte-preprocess": "^5.1.1",
"tailwindcss": "^3.3.5",
"tslib": "^2.6.2",
"typescript": "^5.3.2",
"typescript": "^5.3.2",
"unified": "^11.0.4",
"vfile": "^6.0.1",
"vfile-reporter": "^8.1.0",
"vite": "^5.0.3"
"vfile": "^6.0.1",
"vfile-reporter": "^8.1.0",
"vite": "^5.0.3"
},
"engines": {
"node": ">=16.7"
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
3 changes: 2 additions & 1 deletion src/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ export async function formatContent(content) {
.replace(/\n{% youtube (.*?) %}/g, (_, x) => {
// https://stackoverflow.com/a/27728417/1106414
function youtube_parser(url) {
var rx = /^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|&v(?:i)?=))([^#&?]*).*/
var rx =
/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|&v(?:i)?=))([^#&?]*).*/
return url.match(rx)[1]
}
const videoId = x.startsWith('https://') ? youtube_parser(x) : x
Expand Down
10 changes: 8 additions & 2 deletions src/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
color: var(--brand-accent);
}

:is(::-webkit-calendar-picker-indicator, ::-webkit-clear-button, ::-webkit-inner-spin-button, ::-webkit-outer-spin-button) {
:is(
::-webkit-calendar-picker-indicator,
::-webkit-clear-button,
::-webkit-inner-spin-button,
::-webkit-outer-spin-button
) {
color: var(--brand-accent);
}

Expand Down Expand Up @@ -180,7 +185,8 @@ body::-webkit-scrollbar-thumb {
var(--sb-primary-color)
);
border-radius: 2px;
box-shadow: inset 2px 2px 2px var(--sb-primary-color),
box-shadow:
inset 2px 2px 2px var(--sb-primary-color),
inset -1px -1px 1px var(--sb-track-1);
}

Expand Down

0 comments on commit b90f50c

Please sign in to comment.