mirror of
https://github.com/laurent22/joplin.git
synced 2026-03-13 08:09:59 +08:00
Desktop: Fixes #13107: html to markdown conversion sometimes converting links to plaintext with <ins> tags (#14683)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<a href="#section" style="text-decoration: underline">Section Link</a>
|
||||
@@ -0,0 +1 @@
|
||||
[Section Link](#section)
|
||||
@@ -115,6 +115,11 @@ rules.insert = {
|
||||
//
|
||||
// https://github.com/laurent22/joplin/issues/5480
|
||||
if (node.nodeName === 'INS') return true;
|
||||
if (node.nodeName === 'A' && (
|
||||
node.getAttribute('href') ||
|
||||
node.getAttribute('name') ||
|
||||
node.getAttribute('id')
|
||||
)) return false;
|
||||
return getStyleProp(node, 'text-decoration') === 'underline';
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user