Skip to content

Commit 6f50b96

Browse files
committed
Add support for <image> to image
1 parent 7a448f3 commit 6f50b96

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

lib/handlers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ exports.strong = exports.b = require('./strong');
8888
exports.em = exports.i = exports.u = require('./emphasis');
8989
exports.del = exports.s = exports.strike = require('./delete');
9090
exports.code = exports.kbd = exports.samp = exports.tt = exports.var = require('./inline-code');
91-
exports.img = require('./image');
91+
exports.img = exports.image = require('./image');
9292
exports.br = require('./break');
9393

9494
exports.p = exports.summary = require('./paragraph');

test/fixtures/image/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<p><image src="http://example.com" title="example" alt="example"></p>
2+
<p><image src="http://example.com" title="example"></p>
3+
<p><image src="http://example.com" alt="example"></p>
4+
<p><image src="http://example.com"></p>
5+
<p><image></p>

test/fixtures/image/index.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"fragment": true
3+
}

test/fixtures/image/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
![example](http://example.com "example")
2+
3+
![](http://example.com "example")
4+
5+
![example](http://example.com)
6+
7+
![](http://example.com)
8+
9+
![](<>)

0 commit comments

Comments
 (0)