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

Markdown line breaks for Rd lines ending with latex markup #39

Closed
mannau opened this issue Jan 17, 2025 · 0 comments · Fixed by #40
Closed

Markdown line breaks for Rd lines ending with latex markup #39

mannau opened this issue Jan 17, 2025 · 0 comments · Fixed by #40
Assignees

Comments

@mannau
Copy link

mannau commented Jan 17, 2025

rd2markdown introduces line breaks (or does not remove newlines) if these lines end with latex blocks, e.g. \code{mycode}.

For example, the following Rd description:

\description{
This is a demo function adding two numbers. Let's see how \block{bla}
we
can \code{bla}
deal
with
line
breaks.
}

is translated into the following markdown output:

This is a demo function adding two numbers. Let's see how \block{bla}

we can `bla`

deal with line breaks.
@mannau mannau changed the title Markdown line break bug for code blocks Line break bug for Rd lines ending with latex markup Jan 17, 2025
@mannau mannau changed the title Line break bug for Rd lines ending with latex markup Wrong markdown line breaks for Rd lines ending with latex markup Jan 17, 2025
@mannau mannau changed the title Wrong markdown line breaks for Rd lines ending with latex markup Markdown line breaks for Rd lines ending with latex markup Jan 17, 2025
@maksymiuks maksymiuks self-assigned this Jan 17, 2025
@maksymiuks maksymiuks linked a pull request Jan 17, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants