From 2c44c252d7d17616f636b3ef33986863a02497d5 Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Mon, 19 Dec 2022 20:59:47 +0100 Subject: [PATCH] fixed namespaced anchor links --- packages/core/pattern.mjs | 2 +- tutorial/JsDoc.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/pattern.mjs b/packages/core/pattern.mjs index 05d0b029..2af83df9 100644 --- a/packages/core/pattern.mjs +++ b/packages/core/pattern.mjs @@ -676,7 +676,7 @@ export class Pattern { // Methods without corresponding toplevel functions /** - * Layers the result of the given function(s). Like {@link superimpose}, but without the original pattern: + * Layers the result of the given function(s). Like {@link Pattern.superimpose}, but without the original pattern: * @name layer * @memberof Pattern * @returns Pattern diff --git a/tutorial/JsDoc.jsx b/tutorial/JsDoc.jsx index 48b5f986..545052f8 100644 --- a/tutorial/JsDoc.jsx +++ b/tutorial/JsDoc.jsx @@ -9,9 +9,9 @@ export function JsDoc({ name, h = 3 }) { return
; } const CustomHeading = `h${h}`; - const description = item.description.replaceAll(/\{@link ([a-zA-Z]+)?#?([a-zA-Z]*)\}/g, (_, a, b) => { + const description = item.description.replaceAll(/\{@link ([a-zA-Z\.]+)?#?([a-zA-Z]*)\}/g, (_, a, b) => { // console.log(_, 'a', a, 'b', b); - return `${a}${b ? `#${b}` : ''}`; + return `${a}${b ? `#${b}` : ''}`; }); return ( <>