sethyuan / logseq-plugin-doc

Show page in a more document like look and provide quick exporting.
MIT License
91 stars 4 forks source link

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

Closed acsr closed 2 years ago

acsr commented 2 years ago

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:

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 commented 2 years ago

Good idea, I'll make researches on this.

sethyuan commented 2 years ago

@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 commented 2 years ago

@sethyuan Great work, thanks a lot,

I think you can close this feature request,