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:
commit
1b50144e2e
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue