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

[featur request] Enhance Block IDs in HTML to full fledged Logseq links (optional) #20

Closed
acsr opened this issue Jul 12, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@acsr
Copy link

acsr commented Jul 12, 2022

The HTML source contains block ids for tags and named pages.
When hovering the browser (Chrome) recognizes the link but does not complete a useful clickable URL.

Files printed to PDF from the browser, look nice but contain no remaining link references

It is possible to either

  1. enrich the html to get full fledged Logseq links of the form logseq://graph/my-pkm?block-id=62cd38e0-5071-4bb0-8531-4a3c00012345 for tags?
  2. add a javascript to enhance the links in the browser to achieve this.

Options:

  • Limit to links inside of the export (useful for Tocs, Security)

Actually the full fledged Logseq Export does some parts this, but the boilerplate is overkill for just one document.
I like your HTML to easily render to PDF.

This is just a suggestion. I need to dive deeper to find out if there is a chance to add it myself.

@sethyuan
Copy link
Owner

Good idea, I'll make researches on this.

@sethyuan sethyuan self-assigned this Jul 12, 2022
@sethyuan sethyuan added the enhancement New feature or request label Jul 12, 2022
@sethyuan
Copy link
Owner

sethyuan commented Jul 13, 2022

@acsr I released a new version with logseq:// links support, can you verify if this is what you want?

Also, there is a plugin option if you want to show the "Linked References", it had a bug preventing the "Linked References" section to be shown, which I also fixed, so please have a try.

@acsr
Copy link
Author

acsr commented Jul 17, 2022

@sethyuan Great work, thanks a lot,

  • #tag links and [[page]] links work like a charm.
  • Links to Block References like ((62d4087f-2bdb-4206-9e6a-844c3412345)) work!
  • Display "Linked References" options is now also working well.
    • Not sure if true: I seemed I needed one restart of Logseq for fully recognizing changes of the Display "Linked References" option during runtime. After that no restart was required to swap the setting.

I think you can close this feature request,

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

No branches or pull requests

2 participants