Skip to content

Linebreaks in footnotes #104

@maelle

Description

@maelle

Via ropensci-review-tools/babeldown#63 @xtimbeau

lines <- c("---",
'title: "footnote"',
'---',
'',
'let us insert a footnote[^1]',
'',
'[^1]: here it is. We want a line break',
'',
'    nice and clean inside the footnote',
'',
'    another one',
'')

temp_file <- withr::local_tempfile()
brio::write_lines(lines, temp_file)
tinkr::yarn$new(temp_file)$body
#> {xml_document}
#> <document xmlns="http://commonmark.org/xml/1.0">
#> [1] <paragraph>\n  <text xml:space="preserve">let us insert a footnote[^1]</t ...
#> [2] <paragraph>\n  <text xml:space="preserve">[^1]: here it is. We want a lin ...
#> [3] <code_block xml:space="preserve" name="">nice and clean inside the footno ...

Created on 2024-04-05 with reprex v2.1.0

To me it seems to be a limitation of commonmark.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpending fixA fix has been proposed and is awaiting approvalupstreamThis issue cannot be addressed directly in {tinkr}}

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions