Skip to content

Commit a3209f0

Browse files
author
Sethen Maleno
committed
Bumped version number fixed bug where ampersands can't be parsed in headlines when building link strings
1 parent b53747c commit a3209f0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

markdown-include.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,18 @@ exports.buildLink = function (title, anchor) {
7575
*/
7676
exports.buildLinkString = function (str) {
7777
var linkPatterns = {
78-
comma: {
79-
pattern: /,\s+/g,
78+
ampersand: {
79+
pattern: /&\s+/g,
8080
replace: ''
8181
},
8282
backtick: {
8383
pattern: /`/g,
8484
replace: ''
8585
},
86+
comma: {
87+
pattern: /,\s+/g,
88+
replace: ''
89+
},
8690
dot: {
8791
pattern: /\./g,
8892
replace: '',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-include",
3-
"version": "0.4.3",
3+
"version": "0.4.4",
44
"description": "Include markdown files into other markdown files with C style syntax.",
55
"main": "markdown-include.js",
66
"repository": {

0 commit comments

Comments
 (0)