mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 12:38:35 +00:00
fixed namespaced anchor links
This commit is contained in:
parent
613fc6e3ef
commit
2c44c252d7
@ -676,7 +676,7 @@ export class Pattern {
|
|||||||
// Methods without corresponding toplevel functions
|
// 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
|
* @name layer
|
||||||
* @memberof Pattern
|
* @memberof Pattern
|
||||||
* @returns Pattern
|
* @returns Pattern
|
||||||
|
|||||||
@ -9,9 +9,9 @@ export function JsDoc({ name, h = 3 }) {
|
|||||||
return <div />;
|
return <div />;
|
||||||
}
|
}
|
||||||
const CustomHeading = `h${h}`;
|
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);
|
// console.log(_, 'a', a, 'b', b);
|
||||||
return `<a href="#${a}${b ? `-${b}` : ''}">${a}${b ? `#${b}` : ''}</a>`;
|
return `<a href="#${a.replaceAll('.', '').toLowerCase()}${b ? `-${b}` : ''}">${a}${b ? `#${b}` : ''}</a>`;
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user