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

Transclude by blockreference inside tables #1803

Open
HistoryInvestor opened this issue Mar 3, 2025 · 0 comments
Open

Transclude by blockreference inside tables #1803

HistoryInvestor opened this issue Mar 3, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@HistoryInvestor
Copy link

HistoryInvestor commented Mar 3, 2025

Describe the bug
Currently, if you use a block reference inside of a markdown table, Quartz will not be able to render the referred block inside a cell. Instead, it will break the formatting of the table. This was discussed with @saberzero1 on the Quartz Discord. Additionally, when Quartz pulls the note page that is being referenced with a block, the block reference ( ^######) is shown as a tag even though it is not a tag.

To Reproduce
1 - Inside of Obsidian, create a markdown table where you intend to transclude content from another note by block reference inside a table cell. Example:

Header Column Title
[[note_name]] ![[note_name#^ec05d4]]
[[note_name_2]] ![[note_name_2#^2a2453]]

2 - Push to static site via Quartz

3 - You will see broken tables

4 - On the note page that is being referenced with a block, the block reference ( ^ec05d4 ) is shown as a tag even though it is not a tag.

Expected behavior
I would expect to see the transcluded content within a single cell, not breaking the tables themselves. I would not expect the block reference to be shown - in Obsidian, the block reference is hidden in reading mode. - I believe Quartz should also hide the reference on the source note page where Obsidian places as reference (ex. ^ec05d4), which is what Obsidian does in reading mode.

Screenshots and Source
Example output of the table working in Obsidian:

Image

Example of what the reference looks like on an Obsidian edit view - it disappears on the reading view. This is just a ^###### but Quartz is pulling it in as a tag:

Image

Example output of broken tables on Quartz: https://angkelar-quartz.pages.dev/Languages/Shacerheun/03_Dictionary

Example of a page that has a block reference (ex. ^ec05d4) that has turned into a tag (see how the tag is wrapped in brackets; on the "Meaning" bullet): https://angkelar-quartz.pages.dev/Languages/Shacerheun/Lexicon/co

Desktop (please complete the following information):

  • Quartz Version: 4
  • node Version: 22.14.0
  • npm version: 10.9.2
  • OS: MacOS, 14.6.1
  • Browser Chrome
@HistoryInvestor HistoryInvestor added the bug Something isn't working label Mar 3, 2025
@saberzero1 saberzero1 self-assigned this Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants