Skip to content

Commit fe38c53

Browse files
committed
Require space before title in reference link.
See commonmark/cmark#263.
1 parent 2f97678 commit fe38c53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/inlines.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,9 @@ var parseReference = function(s, refmap) {
808808

809809
var beforetitle = this.pos;
810810
this.spnl();
811-
title = this.parseLinkTitle();
811+
if (this.pos !== beforetitle) {
812+
title = this.parseLinkTitle();
813+
}
812814
if (title === null) {
813815
title = '';
814816
// rewind before spaces

0 commit comments

Comments
 (0)