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

[BUG] Markdown files with a ".qmd" extension don't render properly in org-roam-ui, but those with ".md" do #313

Open
TS-CUBED opened this issue May 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TS-CUBED
Copy link

TS-CUBED commented May 10, 2024

Describe the bug

I use md-roam for some of my notes, since I can't move all of my notes to org for collaboration reasons.

I also use Quarto to write some things (with embedded active code, and for publication as HTML and for lecture notes), and sometimes I need to use that format for my notes as well.

My setup includes:

(setq org-roam-file-extensions '("org" "md" "qmd")) 
(setq md-roam-file-extension '("md" "qmd"))

which works and I can create markdown files in both formats - with all the links, backlinks, etc. working between plain markdown, quarto, and org files. All of these also show up in org-roam-ui, with all links in place (and even nodes for the references).

The only niggle is with the org-roam-ui preview, which does not work for .qmd files, even though the same file with .md renders nicely.

The markdown file ...test_md.md:

---
title: Test MD
id: 2024-05-10T132302
---

# Just a test heading

And some test text

renders as:

image

with a good preview of the markdown as it would be rendered as HTML.

The quarto file ...test_qmd.qmd:

---
title: Test QMD
id: 2024-05-10T131413
---

# Just a test heading

And some test text

renders as:

image

which does not parse the YAML header and omits the first heading.

As you can see the files are identical aside from the Q and the file ending. I assume that's a recognition issue on org-roam-ui side, so not sure if it belongs there or here.

Also here: Hello, first of all: thanks for the great work integrating markdown files in org-roam. Really useful, since I cannot use only org in my work at uni.

I use Quarto to write some things (with embedded active code, and for publication as HTML and for lecture notes), and sometimes I need to use that format for my notes as well.

My setup includes:

(setq org-roam-file-extensions '("org" "md" "qmd")) 
(setq md-roam-file-extension '("md" "qmd"))

which works and I can create markdown files in both formats - with all the links, backlinks, etc. working between plain markdown, quarto, and org files. All of these also show up in org-roam-ui, with all links in place (and even nodes for the references).

The only niggle is with the org-roam-ui preview, which does not work for .qmd files, even though the same file with .md renders nicely.

The markdown file ...test_md.md:

---
title: Test MD
id: 2024-05-10T132302
---

# Just a test heading

And some test text

renders as:

image

with a good preview of the markdown as it would be rendered as HTML.

The quarto file ...test_qmd.qmd:

---
title: Test QMD
id: 2024-05-10T131413
---

# Just a test heading

And some test text

renders as:

image

which does not parse the YAML header and omits the first heading.

As you can see the files are identical aside from the Q and the file ending. I assume that's a recognition issue on org-roam-ui side, so not sure if it belongs there or here.
Hello, first of all: thanks for the great work integrating markdown files in org-roam. Really useful, since I cannot use only org in my work at uni.

I use Quarto to write some things (with embedded active code, and for publication as HTML and for lecture notes), and sometimes I need to use that format for my notes as well.

My setup includes:

(setq org-roam-file-extensions '("org" "md" "qmd")) 
(setq md-roam-file-extension '("md" "qmd"))

which works and I can create markdown files in both formats - with all the links, backlinks, etc. working between plain markdown, quarto, and org files. All of these also show up in org-roam-ui, with all links in place (and even nodes for the references).

The only niggle is with the org-roam-ui preview, which does not work for .qmd files, even though the same file with .md renders nicely.

The markdown file ...test_md.md:

---
title: Test MD
id: 2024-05-10T132302
---

# Just a test heading

And some test text

renders as:

image

with a good preview of the markdown as it would be rendered as HTML.

The quarto file ...test_qmd.qmd:

---
title: Test QMD
id: 2024-05-10T131413
---

# Just a test heading

And some test text

renders as:

image

which does not parse the YAML header and omits the first heading.

As you can see the files are identical aside from the Q and the file ending. I assume that's a recognition issue on org-roam-ui side, so based on nobiot/md-roam#86 posted here as well.

@TS-CUBED TS-CUBED added the bug Something isn't working label May 10, 2024
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

1 participant