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

Improve Quarto to MyST conversion - Frontmatter #1101

Closed
rgaiacs opened this issue Jul 14, 2023 · 1 comment
Closed

Improve Quarto to MyST conversion - Frontmatter #1101

rgaiacs opened this issue Jul 14, 2023 · 1 comment

Comments

@rgaiacs
Copy link
Contributor

rgaiacs commented Jul 14, 2023

Related to #1102

Consider the follow Quarto file (named mwe.qmd):

---
title: MWE
author: Raniere Silva
---

Foo Bar

jupytext --from qmd --to md:myst mwe.qmd runs without error

[jupytext] Reading mwe.qmd in format qmd
1.4.163
0.2.134
[jupytext] Writing mwe.md in format md:myst

and the MyST file created is

---
jupytext:
  text_representation:
    extension: .md
    format_name: myst
    format_version: 0.13
    jupytext_version: 1.14.7+dev
kernelspec:
  display_name: Python 3 (ipykernel)
  language: python
  name: python3
---

```{raw-cell}

---
title: MWE
author: Raniere Silva
---
```

Foo Bar

The expected output is

---
title: MWE
author: Raniere Silva
jupytext:
  text_representation:
    extension: .md
    format_name: myst
    format_version: 0.13
    jupytext_version: 1.14.7+dev
kernelspec:
  display_name: Python 3 (ipykernel)
  language: python
  name: python3
---

Foo Bar

where the title and author information is in the YAML header.

Quarto's Frontmatter documentation: https://quarto.org/docs/authoring/front-matter.html

MyST's Frontmatter documentation: https://mystmd.org/guide/frontmatter

@mwouts
Copy link
Owner

mwouts commented Jul 30, 2023

Closing as the issue is with quarto, see #1102

@mwouts mwouts closed this as completed Jul 30, 2023
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