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 ( <>