Skip to content

feat: add .qmd file extension support#761

Merged
safishamsi merged 1 commit into
Graphify-Labs:v7from
nueshym:feat/qmd
May 7, 2026
Merged

feat: add .qmd file extension support#761
safishamsi merged 1 commit into
Graphify-Labs:v7from
nueshym:feat/qmd

Conversation

@nueshym

@nueshym nueshym commented May 7, 2026

Copy link
Copy Markdown

This PR adds support for Quarto markdown (.qmd) files by routing them through the existing extract_markdown pipeline.

Since .qmd files are largely compatible with standard Markdown, this change only adds .qmd support at the detection and dispatch layers.

Changes included in this PR:

  • Add .qmd to document file extension detection
  • Update export logic to properly sanitize .qmd filenames
  • Add .qmd extractor dispatch using the existing markdown extractor
  • Update watch comments to include .qmd files

Quarto supports executable fenced code blocks using language labels wrapped in curly braces:

```{python}
# some code
```

The only notable difference is that Quarto executable code blocks use labels like {python}, so extract_markdown produces "code: {python}" instead of "code: python". I believe this should be fine since the label is only used for display and the code block itself is still extracted correctly.

Adds support for Quarto markdown (.qmd) files by:
- Adding '.qmd' to document file extensions in detection
- Updating export logic to handle .qmd in filename sanitization
- Adding .qmd extractor dispatch using the existing markdown extractor
- Updating watch comments to include .qmd files
@safishamsi
safishamsi merged commit 1026695 into Graphify-Labs:v7 May 7, 2026
@safishamsi

Copy link
Copy Markdown
Collaborator

Merged via PR #761. .qmd files now route through extract_markdown, added to DOC_EXTENSIONS, _DISPATCH, and both to_obsidian/to_obsidian_canvas safe_name regexes. Shipped in v0.7.9.

hypnwtykvmpr pushed a commit to hypnwtykvmpr/vampyre that referenced this pull request May 7, 2026
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

Successfully merging this pull request may close these issues.

2 participants