add eslint + fix lint errors
This commit is contained in:
parent
e1a532500e
commit
e2898ee5bf
19 changed files with 938 additions and 92 deletions
|
|
@ -18,7 +18,7 @@ function renderAsMDX(name) {
|
|||
}
|
||||
return `### ${item.longname}
|
||||
|
||||
${item.description.replaceAll(/\{\@link ([a-zA-Z]+)?\#?([a-zA-Z]*)\}/g, (_, a, b) => {
|
||||
${item.description.replaceAll(/\{@link ([a-zA-Z]+)?#?([a-zA-Z]*)\}/g, (_, a, b) => {
|
||||
// console.log(_, 'a', a, 'b', b);
|
||||
return `<a href="#${a}${b ? `-${b}` : ''}">${a}${b ? `#${b}` : ''}</a>`;
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue