Skip to content

Commit

Permalink
Fix for mailto: links
Browse files Browse the repository at this point in the history
Fixed #57
  • Loading branch information
madskristensen committed Sep 16, 2016
1 parent ab2137b commit e56718f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
- [x] Mermaid chart support (#40)
- [x] Re-implemented shortcut key bindings (#45)
- [x] Option to disable HTML generation (#60)
- [x] Fix for `mailto:` links (#57)
- [ ] Buttons to switch between Split/Source/Rendered mode
- [ ] Show/hide the preview window when Options change
- [ ] Format document/selection (#12)
Expand Down
2 changes: 1 addition & 1 deletion src/Parsing/MarkdownFactory.cs
Expand Up @@ -78,7 +78,7 @@ private static bool IsUrlValid(string file, string url)
if (string.IsNullOrWhiteSpace(url))
return false;

if (url.Contains("://") || url.StartsWith("/") || url.StartsWith("#"))
if (url.Contains("://") || url.StartsWith("/") || url.StartsWith("#") || url.StartsWith("mailto:"))
return true;

if (url.Contains('\\'))
Expand Down

0 comments on commit e56718f

Please sign in to comment.