question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Obsidian block reference doesn't work

See original GitHub issue

Thanks for the great plugin, I’m just facing a little issue.

Unless I’m doing something wrong, the block reference within obsidian doesn’t work, since the plugin prints the randomized block reference before the highlight in another paragraph.

I would think changing the 66th line in src/renderer/index.ts from

${HighlightIdBlockRefPrefix}${highlight.id}\n${trimmedHighlight};

to something like

${trimmedHighlight}${HighlightIdBlockRefPrefix}${highlight.id};

would do the trick.

edit: Upon doing some digging, I now see that these automated block references is a new addition purely for the plugin to keep the progress for re-syncing, and not for users to directly use in their writing process. Implementing the chance I suggested would then probably break the re-sync method as well. Still, it would have been nice if these block-references can be appended to the end of the quote, and modify the re-sync code appropriately, so that their purpose would be two-fold.


See: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alicangokcommented, Nov 8, 2021

That was fast. Thank you, works perfect.

0reactions
hadynzcommented, Nov 8, 2021

This has been now been implemented in 1.1.0. Please check it out and let me know if it resolves the issue you raised and works well in your workflow.

You might have to delete one of your books so the plugin can recreate it on new sync with block references printed end of line.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Block reference doesn't work for headers - Obsidian Forum
Create a block reference by typing [[^^ and selecting a block. This appends a hash to the end of the block, for example...
Read more >
Global block reference not working - Bug graveyard
Only block references for current note appear in auto-complete. Environment. Operating system: macOS Mojave. Obsidian version: 0.9.17, though I' ...
Read more >
Unable to link/embed or do block reference to a header when ...
Steps to reproduce​​ in summary note try to link to reference note blocks. first try the normal text list (i.e. - conflict with...
Read more >
Link to blocks - Obsidian Help
That means these links will not work outside of Obsidian. You can still find referenced block by searching for the block ID, although...
Read more >
Block references don't work with nested code block
Under some bullet create a nested code block. like this. On another page embed a block reference to the bullet with the code...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found