You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While I believe #596 likely prevents actual transclusion upon publishing, it doesn't seem to have an effect on the diff produced in the publication center.
tyler-dot-earth
changed the title
Publication center diff performs transclusion replacements in code blocks
Transclusions are performed in code blocks
Jun 11, 2024
Nice catch. Agreed. I think your solution, where we exclude the codeblocks, do our various transformations and then reintroduce the codeblocks at the end would fix most of the issues with codeblocks.
I'll merge in your other PR for now. If you want to give implementing a fix for this issue a go, I'd be happy to accept a PR.
If a code block contains Obsidian transclusion syntax, the publication center will show a diff that contains the full transclusion.
For example, assume you have a note
embeds.md
and then write a codeblock in a publishable note like this:While I believe #596 likely prevents actual transclusion upon publishing, it doesn't seem to have an effect on the diff produced in the publication center.
Related:
The text was updated successfully, but these errors were encountered: