Skip to content

Commit 238d294

Browse files
committed
Add support for <address> to paragraph
1 parent cac60e8 commit 238d294

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

lib/handlers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ exports.code = exports.kbd = exports.samp = exports.tt = exports.var = require('
3636
exports.img = require('./image');
3737
exports.br = require('./break');
3838

39-
exports.p = require('./paragraph');
39+
exports.address = exports.p = require('./paragraph');
4040
exports.hr = require('./thematic-break');
4141
exports.xmp = exports.pre = require('./code');
4242
exports.blockquote = require('./blockquote');

test/fixtures/address/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<address>
2+
You can contact author at <a href="http://www.somedomain.com/contact">www.somedomain.com</a>.<br>
3+
If you see any bugs, please <a href="mailto:[email protected]">contact webmaster</a>.<br>
4+
You may also want to visit us:<br>
5+
Mozilla Foundation<br>
6+
1981 Landings Drive<br>
7+
Building K<br>
8+
Mountain View, CA 94043-0801<br>
9+
USA
10+
</address>

test/fixtures/address/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/address/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
You can contact author at [www.somedomain.com](http://www.somedomain.com/contact).··
2+
If you see any bugs, please [contact webmaster](mailto:[email protected]).··
3+
You may also want to visit us:··
4+
Mozilla Foundation··
5+
1981 Landings Drive··
6+
Building K··
7+
Mountain View, CA 94043-0801··
8+
USA

0 commit comments

Comments
 (0)