Skip to content

Commit 06bfa4d

Browse files
Fix fffaraz#82: Use regex to remove hyphens from fragment identifiers
1 parent 3d436dd commit 06bfa4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/awesome-cpp.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var getFileData = function(url) {
55
"Accept": "application/vnd.github.v3.raw"
66
}
77
}).done(function(data) {
8+
data = data.replace(/(\(#\w+)-/g, "$1").replace(/(\(#\w+)-/g, "$1");
89
var converter = new Showdown.converter();
910
var html = converter.makeHtml(data);
1011
$("#content").html(html)

0 commit comments

Comments
 (0)