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.
1 parent 65fcad8 commit c320354Copy full SHA for c320354
3 files changed
lib/util/parse-link.js
@@ -37,7 +37,7 @@ var CC_HASH = '#'.charCodeAt(0);
37
*/
38
function parse(node) {
39
var link = {};
40
- var url = node.url || /* istanbul ignore next - remark@<4.0.0 */ node.href;
+ var url = node.url || node.href || '';
41
var start;
42
var end;
43
var page;
test/fixtures/links/input.md
@@ -11,6 +11,8 @@ pretty.
11
12
## Non-references
13
14
+An empty link: [this and that]().
15
+
16
A link to GH:
17
<https://github.com>
18
test/fixtures/links/output.md
+An empty link: [this and that](<>).
0 commit comments