mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-4249] Fixed issues with ToC and auto-linking tools (#4492)
* [ADF-4249] Fixed issues with anchors in contents sections * [ADF-4249] Removed redundant copy of edit proc filter cloud docs * [ADF-4249] Fixed YAML template generation for accessor props * [ADF-4249] Fixed ToC link generation * [ADF-4249] Fixed type alias links in component docs
This commit is contained in:
committed by
Eugenio Romano
parent
dac4f1bcef
commit
8a86981da7
@@ -137,9 +137,9 @@ function makeToc(tree) {
|
||||
"title": linkTitle,
|
||||
//"anchor": "#" + linkTitle.toLowerCase().replace(/ /g, "-").replace(/[:;@\.,'"`$\(\)\/]/g ,"")
|
||||
"anchor": "#" + linkTitle.toLowerCase()
|
||||
.replace(/\W/g ,"-")
|
||||
.replace(/-+/g, '-')
|
||||
.replace(/-+$/, '')
|
||||
.replace(/[^a-z0-9\s\-_]/g, '')
|
||||
.replace(/\s/g ,"-")
|
||||
.replace(/\-+$/, '')
|
||||
})
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user