jackyzha0 / quartz

🌱 a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
https://quartz.jzhao.xyz
MIT License
7.37k stars 2.54k forks source link

Markdown Table not rendering in Obsidian vault #1525

Closed maixnor closed 1 month ago

maixnor commented 1 month ago

Describe the bug Tables in markdown are not rendering correctly, they are just a blob of text

Expected behavior A formatted table

Screenshots and Source image

source: https://github.com/maixnor/wu-quartz publish: https://maixnor.github.io/wu-quartz/semester-3/Voluntary-Reporting-Standards-and-Frameworks

Additional context Already solved, just creating the issue here for documentation.

maixnor commented 1 month ago

I already solved it, just for documentation purposes.

You need to activate GitHubFlavoredMarkdown() as well in quartz.config.ts on top of just ObsidianFlavoredMarkdown().

transformers: [
  ...
  Plugin.ObsidianFlavoredMarkdown({ enableInHtmlEmbed: true }),
  Plugin.GitHubFlavoredMarkdown(), // rendering tables
  ...
],

Here is a link to the commit which fixed it for me: https://github.com/maixnor/wu-quartz/commit/3d106eeb5d8fbcc490184629a08568181fbfd9e6

Hope it helps you in tracking down this issue.