Obsidian block reference doesn't work
See original GitHub issueThanks 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:
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
That was fast. Thank you, works perfect.
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.