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 parser doesn't work with quarto files #564

Open
maikol-solis opened this issue Apr 22, 2024 · 4 comments
Open

Markdown parser doesn't work with quarto files #564

maikol-solis opened this issue Apr 22, 2024 · 4 comments
Labels
question Further information is requested

Comments

@maikol-solis
Copy link
Contributor

Hi!

I'm trying to visualize some quarto files, which are basically markdown with some R or python chunks to execute data analysis.

The problem is if I display the same text in a .md and a .qmd the results are entirely different.

.md
image

.qmd
image

Why is there a difference, and how can we fix it?

Thanks.

@maikol-solis maikol-solis changed the title Markdown parser doesn't work wit quarto files Markdown parser doesn't work with quarto files Apr 22, 2024
@jcs090218
Copy link
Member

Is the markdown mode being used in the qmd file? 🤔

@maikol-solis
Copy link
Contributor Author

Yes, it uses poly-quarto-mode (https://github.com/quarto-dev/quarto-emacs).

I have recorded exactly what I am seeing on my laptop.

Screen.Recording.2024-04-22.at.15.44.02.mov

@jcs090218
Copy link
Member

Hmmm... would adding poly-quarto-mode here work? 🤔

(markdown-mode . markdown)

@jcs090218 jcs090218 added the question Further information is requested label Apr 22, 2024
@maikol-solis
Copy link
Contributor Author

I have this in my config.el (doom-emacs)

(after! tree-sitter
  (add-to-list 'tree-sitter-major-mode-language-alist '(poly-quarto-mode . markdown)))

image

I don't know if I need to change something else...???

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

No branches or pull requests

2 participants