chore: lint
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user