l1xnan / obsidian-better-export-pdf

Obsidian PDF export enhancement plugin
MIT License
254 stars 15 forks source link

Internal link to note is being displayed multiple times #259

Closed heykapil closed 1 week ago

heykapil commented 2 weeks ago

Hi there,

This plugin is generating internal link text multiple times. Look at the internal link (Holomorphic) in the first theorem as in screenshots.

Here is the source code

image

Reading view:

image

Plugin preview and settings for export

image

PDF generated:

image

The default pdf export plugin is working fine and not generating multiple internal links like above mentioned.

Debug Info:

SYSTEM INFO: Obsidian version: v1.5.12 Installer version: v1.5.3 Operating system: Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 23.1.0 Login status: not logged in Insider build toggle: off Live preview: on Base theme: adapt to system Community theme: Things Snippets enabled: 2 Restricted mode: off Plugins installed: 28 Plugins enabled: 28 1: Formatto v1.2.7 2: Completr v3.2.0 3: Auto Front Matter v2.0.2 4: MAKE.md v0.9.31 5: Linter v1.24.0 6: LanguageTool Integration v0.3.7 7: Various Complements v10.0.0 8: Latex Suite v1.9.4 9: WordWise v0.7.4 10: Image Layouts v0.15.4 11: TikZJax v0.5.2 12: Better MathJax v1.0.1 13: Extended MathJax v0.4.1 14: Git v2.24.3 15: Copilot v2.5.2 16: Consistent Attachments and Links v1.3.0 17: Note Linker v1.2.4 18: Todoist Sync v1.13.0 19: Obsidian Columns v1.5.2 20: No more flickering inline math v0.3.5 21: LaTeX-like Theorem & Equation Referencer v2.2.0 22: MathLinks v0.5.3 23: CSS Editor v1.2.1 24: Admonition v10.3.2 25: Reference Generator v1.0.1 26: MagicCalendar v1.1.9 27: Markmind v2.0.1 28: Better Export PDF v1.8.2

RECOMMENDATIONS: Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets. Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

l1xnan commented 2 weeks ago

Could you provide the Markdown file for reproducing this issue?

heykapil commented 2 weeks ago

Here is the markdown file for reproduction of issue.

https://notes.kapil.app/Taylor%20Theorem.md

Internal Link to this markdown file: https://notes.kapil.app/Holomorphic%20and%20Meromorphic%20functions.md

The html debug file (during print)which is causing the repetition of the internal links is:

image

This one and the Mathlinks plugin causing compatibility issues, however the built-in PDF export feature of Obsidian appears to be functioning properly. For now, this custom CSS is fixing problem for me temporarily.

a.mathLink-internal-link {
display: none !important;
}

a.original-internal-link { 
display: inline !important;
}