Commit 19c74f8
committed
fix: Use Obsidian's generateMarkdownLink for consistent link formatting (Issue #312)
Replace hard-coded wikilink generation with Obsidian's generateMarkdownLink()
method to respect user's link format preferences and ensure consistency.
Changes:
- Fix "Insert tasknote link" command to use generateMarkdownLink with task title as alias
- Fix "Convert task to TaskNote" command to use generateMarkdownLink
- Update generateLinkText helper to use generateMarkdownLink
- Both commands now respect Obsidian's "Files & Links" settings
- Consistent link format between both commands
- Compatible with external tools when markdown links are preferred
Fixes #3121 parent aad6885 commit 19c74f8
2 files changed
+16
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1561 | 1561 | | |
1562 | 1562 | | |
1563 | 1563 | | |
1564 | | - | |
| 1564 | + | |
1565 | 1565 | | |
1566 | 1566 | | |
1567 | | - | |
1568 | | - | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
1569 | 1575 | | |
1570 | 1576 | | |
1571 | 1577 | | |
1572 | | - | |
| 1578 | + | |
1573 | 1579 | | |
1574 | 1580 | | |
1575 | 1581 | | |
1576 | 1582 | | |
1577 | | - | |
| 1583 | + | |
1578 | 1584 | | |
1579 | 1585 | | |
1580 | 1586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
608 | | - | |
| 607 | + | |
| 608 | + | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
| 611 | + | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
914 | | - | |
| 914 | + | |
915 | 915 | | |
916 | | - | |
| 916 | + | |
917 | 917 | | |
918 | 918 | | |
919 | 919 | | |
| |||
0 commit comments