chore: lint

This commit is contained in:
amhsirak
2025-11-20 17:23:04 +05:30
parent 691dedc351
commit 7f48e276f1

View File

@@ -17,7 +17,7 @@ export async function parseMarkdown(
}); });
// --------------------------------------------- // ---------------------------------------------
// Fix 1: Proper ATX headings #### instead of underline-style // Proper ATX headings #### instead of underline-style
// --------------------------------------------- // ---------------------------------------------
t.addRule("forceAtxHeadings", { t.addRule("forceAtxHeadings", {
filter: ["h1", "h2", "h3", "h4", "h5", "h6"], filter: ["h1", "h2", "h3", "h4", "h5", "h6"],
@@ -49,7 +49,7 @@ export async function parseMarkdown(
}); });
// --------------------------------------------- // ---------------------------------------------
// Fix 2: Inline link with fallback text // Inline link with fallback text
// --------------------------------------------- // ---------------------------------------------
t.addRule("inlineLink", { t.addRule("inlineLink", {
filter: (node: any, opts: any) => filter: (node: any, opts: any) =>
@@ -74,7 +74,7 @@ export async function parseMarkdown(
try { try {
const u = new URL(href, baseUrl); const u = new URL(href, baseUrl);
href = u.toString(); href = u.toString();
} catch {} } catch { }
} }
href = cleanUrl(href); href = cleanUrl(href);