Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #89 from andre-d/requirespace

Require a space for link titles
  • Loading branch information...
commit 86a4790c47e1d6e0c71e017d312ff758b610ef69 2 parents dde042f + 05f958d
Vicent Marti authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  src/markdown.c
3  src/markdown.c
@@ -888,7 +888,8 @@ char_link(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t offset
888 888
 		/* looking for link end: ' " ) */
889 889
 		while (i < size) {
890 890
 			if (data[i] == '\\') i += 2;
891  
-			else if (data[i] == ')' || data[i] == '\'' || data[i] == '"') break;
  891
+			else if (data[i] == ')') break;
  892
+			else if (i >= 1 && _isspace(data[i-1]) && (data[i] == '\'' || data[i] == '"')) break;
892 893
 			else i++;
893 894
 		}
894 895
 

0 notes on commit 86a4790

Please sign in to comment.
Something went wrong with that request. Please try again.