Browse files

for image support, put base href in generated html

  • Loading branch information...
1 parent 9134196 commit 64670bf5b6a311f5f75ffe755c7d6615ac9d172b @thomasaw thomasaw committed Apr 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 markdown.m
View
3 markdown.m
@@ -22,10 +22,11 @@
"<head>"
"<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />"
"<style type=\"text/css\">%@</style>"
+ "<base href=\"%@\"/>"
"</head>"
"<body>%@</body>"
"</html>",
- styles, [NSString stringWithUTF8String:output]];
+ styles, url, [NSString stringWithUTF8String:output]];
free(output);
return [html dataUsingEncoding:NSUTF8StringEncoding];

0 comments on commit 64670bf

Please sign in to comment.