ropensci-review-tools / babeldown

Helpers for Automatic Translation of Markdown-based Content
https://docs.ropensci.org/babeldown/
Other
20 stars 2 forks source link

linebreak in a footnote in a qmd #63

Open xtimbeau opened 5 months ago

xtimbeau commented 5 months ago

It is possible in a qmd to have a linebreak in a footnote. However, running babeldown on it transform the footnote inserting ticks.

---
title: "footnote"
---

let's insert a footnote[^1]

[^1]: here it is. We want a line break

    nice and clean inside the footnote

    another one

here is the translation. Ticks are added and the text inbetween is not translated.


---
title: note de bas de page
---

insérons une note de bas de page[^1]

[^1]: voici ce qu'il en est.  Nous voulons un saut de ligne

nice and clean inside the footnote

another one

maelle commented 5 months ago

This might be a current limitation of tinkr/commonmark.

maelle commented 5 months ago

see https://github.com/r-lib/commonmark/issues/23#issuecomment-2062247388