diff options
| -rw-r--r-- | assets/js/wiki-features.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/js/wiki-features.js b/assets/js/wiki-features.js index bb35cd3..237bf05 100644 --- a/assets/js/wiki-features.js +++ b/assets/js/wiki-features.js @@ -33,6 +33,12 @@ if (!this.id && previousSiblingName) { this.id = $(this).attr( "id", previousSiblingName.replace(/\./g, "-") ); } + + // Yehonal + if (!this.id) { + this.id = $(this).text().replace(/\W/g,'_'); + } + return this.id; }), output = $(this); if (!headers.length || headers.length < settings.minimumHeaders || !output.length) { |
