Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal links with alias: pasted incorrectly #73

Open
lebigot opened this issue Dec 9, 2024 · 0 comments
Open

Internal links with alias: pasted incorrectly #73

lebigot opened this issue Dec 9, 2024 · 0 comments

Comments

@lebigot
Copy link

lebigot commented Dec 9, 2024

Describe the bug

A link with alias like [[Internal Revenue Service|IRS]] is incorrectly pasted as Internal Revenue Service|IRS.

To Reproduce

Steps to reproduce the behavior:

  1. Use an internal link with alias (as above).
  2. Select a passage with this link.
  3. Convert the selection to HTML with this plugin.
  4. Paste into, say, Outlook (macOS).

The part before the alias is pasted (along with the "|" pipe symbol), which is arguably not what is intended.

Expected behavior

Only the alias should be pasted (IRS, in the example above).

A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS: macOS 15.1.1
  • Browser: Safari
  • Version: Safari 18.1.1

Additional context

An Obsidian plugin such as strip-internal-links does the job properly.

This is a workaround, but it would be nicer if the feature was directly included in obsidian-copy-as-html (this would be more efficient, for all users).

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant