mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 19:01:35 +01:00
Add ESLint
This commit is contained in:
@@ -6,13 +6,6 @@ import GithubSlugger from "github-slugger";
|
||||
import DOMPurify from "isomorphic-dompurify";
|
||||
import { applyAction, deserialize } from "$app/forms";
|
||||
|
||||
export const sortOptions = [
|
||||
{ value: "creation-time", text: "Creation time" },
|
||||
{ value: "last-modified", text: "Last modified" },
|
||||
{ value: "title-a-to-z", text: "Title - A to Z" },
|
||||
{ value: "title-z-to-a", text: "Title - Z to A" }
|
||||
];
|
||||
|
||||
export const ALLOWED_MIME_TYPES = ["image/jpeg", "image/png", "image/svg+xml", "image/webp"];
|
||||
|
||||
const createMarkdownParser = (showToc = true) => {
|
||||
@@ -61,7 +54,7 @@ const createMarkdownParser = (showToc = true) => {
|
||||
const text = this.parser.parseInline(tokens);
|
||||
const raw = unescape(this.parser.parseInline(tokens, this.parser.textRenderer))
|
||||
.trim()
|
||||
.replace(/<[!\/a-z].*?>/gi, "");
|
||||
.replace(/<[!a-z].*?>/gi, "");
|
||||
const level = depth;
|
||||
const id = `${prefix}${slugger.slug(raw.toLowerCase())}`;
|
||||
const heading = { level, text, id, raw };
|
||||
|
||||
Reference in New Issue
Block a user