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

Bibliography section becomes code #1161

Closed
matthew-brett opened this issue Nov 15, 2023 · 2 comments · Fixed by #1175 or #1180
Closed

Bibliography section becomes code #1161

matthew-brett opened this issue Nov 15, 2023 · 2 comments · Fixed by #1175 or #1180
Assignees
Milestone

Comments

@matthew-brett
Copy link
Contributor

This is really to ask for advice about a problem I have with jupyter-book files.

For some files, I want to list ciations. The obvious way to do this, is to include a version of this Markdown cell at the end of the page (RMarkdown format) - see https://jupyterbook.org/en/stable/content/citations.html#local-bibliographies

```{bibliography}
```

However, Jupytext interprets this text as a code cell of language bibliography, so running jupytext --to Rmd on a file with this cell, results in:

```{bibliography language="bibliography"}

```

In the notebook interface, this also appears as a code cell.

Do you have any advice for avoiding this behavior?

Thanks as ever.

@mwouts mwouts self-assigned this Nov 16, 2023
@mwouts
Copy link
Owner

mwouts commented Nov 16, 2023

Hi @matthew-brett , thank you for the bug report! Should be easy to fix, I will have a look when time permits.

@mwouts
Copy link
Owner

mwouts commented Nov 28, 2023

Reopening because I am not completely sure that the fix committed yesterday will work if a code cell happens to be placed after the bibliography section.

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