@networkpro/blog
Version:
The official blog of Network Pro Strategies (Network Pro™).
33 lines (25 loc) • 1.12 kB
JavaScript
/* ==========================================================================
.markdownlint.mjs
Copyright © 2025 Network Pro Strategies (Network Pro™)
SPDX-License-Identifier: CC-BY-4.0 OR GPL-3.0-or-later
This file is part of Network Pro.
========================================================================== */
import noSmartQuotes from './.md-smart-quotes.js'; // adjust path as needed
export default {
// Enable all default rules, then override below
default: true,
// Custom rule: disallow curly (smart) quotes
customRules: [noSmartQuotes],
// Rule exceptions
MD041: false, // First line in file should be a top-level header
MD033: false, // Allow inline HTML
MD013: false, // Ignore line length
MD025: false, // Multiple top level headers in the same document
// Additional parser options
options: {
frontMatter: '^---\\n[\\s\\S]*?\\n---', // YAML front matter regex
},
// Rule-specific configurations
MD007: { indent: 2 }, // Set consistent unordered list indentation (e.g., 2 spaces)
MD029: { style: 'ordered' }, // Enforce consistent ordered list numbering
};