function extractOrderFromFilename(filename) {
  const match = filename.match(/^(\d+)-/);
  return match ? parseInt(match[1], 10) : 999;
}
function cleanFilename(filename) {
  return filename.replace(/^\d+-/, "").replace(/\.md$/, "");
}
function slugToTitle(slug) {
  return slug.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
}
export {
  cleanFilename,
  extractOrderFromFilename,
  slugToTitle
};
