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

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

Open
TS-CUBED opened this issue May 10, 2024 · 4 comments

Comments

@TS-CUBED
Copy link

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.

@nobiot
Copy link
Owner

nobiot commented May 10, 2024

I think you will need to raise an issue in the org-roam-ui project, then?

Also, I don't know why (setq md-roam-file-extension '("md" "qmd")) works. This variable is designed to be a single value, not a list.

As this repo is my personal tool, I don't think I can help you much further. I don't use qml, myself.

@TS-CUBED
Copy link
Author

Funny, you added that (list for file extensions) in issue #75

#75

I will raise the issue in org-roam-ui, then.

@nobiot
Copy link
Owner

nobiot commented May 10, 2024

Oh thanks for reminding this. Glad it works. Perhaps this part is not considered in org-roam-ui. Perhaps you can try with only setting qmd and see how it behaves.

@TS-CUBED
Copy link
Author

Nope, same behaviour with

(setq md-roam-file-extension "qmd")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants