1
0
Fork 0
mirror of https://github.com/fffaraz/awesome-cpp.git synced 2025-11-06 22:56:21 -05:00

Merge pull request #104 from gamut-was-taken/patch-1

Fix #82: Use regex to remove hyphens from fragment identifiers
This commit is contained in:
Faraz Fallahi 2015-04-25 11:18:03 -05:00
commit 1b50144e2e

View file

@ -5,6 +5,7 @@ var getFileData = function(url) {
"Accept": "application/vnd.github.v3.raw"
}
}).done(function(data) {
data = data.replace(/(\(#\w+)-/g, "$1").replace(/(\(#\w+)-/g, "$1");
var converter = new Showdown.converter();
var html = converter.makeHtml(data);
$("#content").html(html)