Desktop: Fixes #13107: html to markdown conversion sometimes converting links to plaintext with <ins> tags (#14683)

This commit is contained in:
bwat47
2026-03-12 14:47:49 -04:00
committed by GitHub
parent e5274c5cff
commit 667ff1797d
3 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
<a href="#section" style="text-decoration: underline">Section Link</a>

View File

@@ -0,0 +1 @@
[Section Link](#section)

View File

@@ -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';
},