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

Fix paragraph handling #23

Open
quantsch opened this issue May 8, 2024 · 0 comments
Open

Fix paragraph handling #23

quantsch opened this issue May 8, 2024 · 0 comments

Comments

@quantsch
Copy link
Owner

quantsch commented May 8, 2024

Paragraphs are not handled as they should:

test_that("Paragraphs are handled correctly", {
  expect_equal(rd_str_to_md("line-one\nline-two"), "line-one\nline-two\n")

  # TODO: these tests fail, fix behaviour:
  expect_equal(
    rd_str_to_md("paragraph-one\n\nparagraph-two"),
    "paragraph-one\n\nparagraph-two\n"
  )
  expect_equal(
    rd_str_to_md("paragraph-one\n\n\nparagraph-two"),
    "paragraph-one\n\nparagraph-two\n"
  )
})
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

1 participant