diff --git a/AppStore/Listing/Description.txt b/AppStore/Listing/Description.txt index cd51ce8..1451f3f 100644 --- a/AppStore/Listing/Description.txt +++ b/AppStore/Listing/Description.txt @@ -9,7 +9,7 @@ Features: Supported file types: • Source code (.cpp, .js, .json, .py, .swift, .yml and many more) -• Markdown (.md, .markdown, .mdown, .mkdn, .mkd, .Rmd) +• Markdown (.md, .markdown, .mdown, .mkdn, .mkd, .Rmd, .qmd) • Archive (.tar, .tar.gz, .zip) • Jupyter Notebook (.ipynb) • Tab-separated values (.tab, .tsv) diff --git a/Glance/SupportedFilesWC.xib b/Glance/SupportedFilesWC.xib index a79a964..ec70551 100644 --- a/Glance/SupportedFilesWC.xib +++ b/Glance/SupportedFilesWC.xib @@ -60,7 +60,7 @@ -.md, .markdown, .mdown, .mkdn, .mkd, .Rmd +.md, .markdown, .mdown, .mkdn, .mkd, .Rmd, .qmd diff --git a/GlanceTests/TestFiles/markdown/example.qmd b/GlanceTests/TestFiles/markdown/example.qmd new file mode 100644 index 0000000..232e884 --- /dev/null +++ b/GlanceTests/TestFiles/markdown/example.qmd @@ -0,0 +1,47 @@ +--- +title: "My Document" +output: html_document +--- + +# My Document + +## Emphasis + +This is a Markdown document. It may contain **bold** or _italic_ text. Text can also be **_both bold and italic_**. + +## Lists + +Markdown supports ordered and unordered lists, which may be nested: + +1. Item 1 +2. Item 2 + - Item 2a + - Item 2b + +## Code + +This `code` is inline. The following is a code block with syntax highlighting: + +```js +const print = (text) => console.log(text); +print("Hello world"); +``` + +## Links + +Links can be created explicitly ([example](https://example.com)) or detected automatically (https://example.com). + +## Blockquotes + +You can easily create quotes: + +> This is the quote's first line. +> +> This is the second one. + +## Tables + +| First header | Second header | +| ------------ | ------------- | +| 1 | 2 | +| 3 | 4 | diff --git a/QLPlugin/Info.plist b/QLPlugin/Info.plist index 1f16a43..036d118 100644 --- a/QLPlugin/Info.plist +++ b/QLPlugin/Info.plist @@ -57,6 +57,7 @@ dyn.ah62d4rv4ge80445er2 dyn.ah62d4rv4ge80445er7506 dyn.ah62d4rv4ge81e5pe + dyn.ah62d4rv4ge81c5pe net.daringfireball.markdown net.ia.markdown com.nutstore.down diff --git a/QLPlugin/Views/PreviewVCFactory.swift b/QLPlugin/Views/PreviewVCFactory.swift index a3a6624..8767005 100644 --- a/QLPlugin/Views/PreviewVCFactory.swift +++ b/QLPlugin/Views/PreviewVCFactory.swift @@ -8,7 +8,7 @@ class PreviewVCFactory { case "gz": // `gzip` is only supported for tarballs return fileURL.path.hasSuffix(".tar.gz") ? TARPreview.self : nil - case "md", "markdown", "mdown", "mkdn", "mkd", "rmd": + case "md", "markdown", "mdown", "mkdn", "mkd", "rmd", "qmd": return MarkdownPreview.self case "ipynb": return JupyterPreview.self diff --git a/README.md b/README.md index 639e8da..6b4c4c8 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ The installation is slightly complex as the package is not notarized. The steps

-- **Markdown** (rendered using [goldmark](https://github.com/yuin/goldmark)): `.md`, `.markdown`, `.mdown`, `.mkdn`, `.mkd`, `.Rmd` +- **Markdown** (rendered using [goldmark](https://github.com/yuin/goldmark)): `.md`, `.markdown`, `.mdown`, `.mkdn`, `.mkd`, `.Rmd`, `.qmd`