/** @type {import("markdownlint").Rule} */ module.exports = { names: ["no-hr", "no-horizontal-rules"], description: "Horizontale Trennlinien sind nicht erlaubt", tags: ["style"], parser: "markdownit", function: (params, onError) => { for (const token of params.parsers.markdownit.tokens) { if (token.type !== "hr") continue; const startLine = token.map[0] + 1; onError({ lineNumber: startLine, detail: "Struktur über Überschriften, nicht über Trennlinien.", context: token.line, fixInfo: { lineNumber: startLine, deleteCount: -1 } }); } } };