From 9883b8fcaf2e69bda92fb67ffc24cee815999499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferran=20Gal=C3=AD=20i=20Reniu?= Date: Tue, 20 Oct 2020 17:16:16 +0200 Subject: [PATCH] fix(lib/markdownbuilder.js): propTable property anchor link generated with github-slugger --- lib/markdownBuilder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/markdownBuilder.js b/lib/markdownBuilder.js index ac6870de..e4425cac 100644 --- a/lib/markdownBuilder.js +++ b/lib/markdownBuilder.js @@ -309,9 +309,9 @@ function build({ * Generates the overview table row for a single property definition * @param {*} param0 */ - function makepropheader(required = [], ispattern = false) { + function makepropheader(required = [], ispattern = false, slugger) { return ([name, definition]) => tableRow([ - tableCell(ispattern ? inlineCode(name) : link(`#${name}`, '', text(name))), // Property + tableCell(ispattern ? inlineCode(name) : link(`#${slugger.slug(name)}`, '', text(name))), // Property tableCell(type(definition)), tableCell(text(required.indexOf(name) > -1 ? i18n`Required` : i18n`Optional`)), tableCell(nullable(definition)),