Skip to content

Commit b53747c

Browse files
author
Sethen Maleno
committed
Fixed bug that didn't properly link headlines with commas
1 parent b968933 commit b53747c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

markdown-include.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ exports.buildLink = function (title, anchor) {
7575
*/
7676
exports.buildLinkString = function (str) {
7777
var linkPatterns = {
78+
comma: {
79+
pattern: /,\s+/g,
80+
replace: ''
81+
},
7882
backtick: {
7983
pattern: /`/g,
8084
replace: ''

0 commit comments

Comments
 (0)