diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-02-04 19:16:02 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-02-04 19:16:02 +0000 |
| commit | 2c02b7caa502c2ec529b571fd3eb20d77f54d374 (patch) | |
| tree | 492e360516dba5cf20c980dba589e6e70b538032 /lib | |
| parent | aa5f0390a119506eb7af750979aa4e98c0749247 (diff) | |
Display images as actual images rather than links in markdown
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/writers/markdown-writer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/writers/markdown-writer.js b/lib/writers/markdown-writer.js index 5a75db7..711f722 100644 --- a/lib/writers/markdown-writer.js +++ b/lib/writers/markdown-writer.js @@ -41,7 +41,7 @@ function markdownImage() { this.open = function(attributes) { var src = attributes.src || ""; var altText = attributes.alt || ""; - return "[" + altText + "](" + src + ")"; + return ""; }; this.close = function() { @@ -52,7 +52,7 @@ function markdownImage() { // don't display empty content (this is mainly to remove images with no src data) var content = this.open(attrs) + this.close(); - if (content === "[]()") { + if (content === "![]()") { return ""; } |
