diff --git a/lib/markdown/slugify.js b/lib/markdown/slugify.js index d4aa023412..47a9d6e9de 100644 --- a/lib/markdown/slugify.js +++ b/lib/markdown/slugify.js @@ -15,6 +15,8 @@ module.exports = function slugify (str) { .replace(/\-{2,}/g, '-') // Remove prefixing and trailing separtors .replace(/^\-+|\-+$/g, '') + // ensure it doesn't start with a number (#121) + .replace(/^(\d)/, '_$1') // lowercase .toLowerCase() }