We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
a
href
1 parent 85a5b3c commit b776a59Copy full SHA for b776a59
handlers/link.js
@@ -6,7 +6,7 @@ var all = require('../all');
6
7
function link(h, node) {
8
var props = {
9
- url: node.properties.href,
+ url: node.properties.href || '',
10
title: node.properties.title || null
11
};
12
tests/fixtures/a/index.html
@@ -1,2 +1,4 @@
1
<p><a href="http://example.com" title="example">example</a></p>
2
-<p><a href="http://example.com">example</a></p>
+<p><a href="http://example.com">example</a></p>
3
+<p><a>example</a></p>
4
+<p><a></a></p>
tests/fixtures/a/index.md
@@ -1,3 +1,7 @@
[example](http://example.com "example")
[example](http://example.com)
+
5
+[example](<>)
+[](<>)
0 commit comments