Skip to content

Commit

Permalink
fix(HTML) Create link even if title is missing
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Dec 10, 2019
1 parent 52ea4bf commit 10c6e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/markdown-html/src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const LINK_RULE = {
'$class': `${NS_PREFIX_CommonMarkModel}Link`,
nodes: next(el.childNodes),
destination: el.getAttribute('href'),
title: el.getAttribute('title')
title: el.getAttribute('title') ? el.getAttribute('title') : '',
};
}
}
Expand Down

0 comments on commit 10c6e91

Please sign in to comment.