rjournal / rjtools

Tools for AUTHORS to use for checking and submitting articles to the R Journal
https://rjournal.github.io/rjtools/
Other
31 stars 14 forks source link

Avoid new lines in bulleted lists #102

Closed hturner closed 1 year ago

hturner commented 1 year ago

Following on from https://github.com/Abhi-1U/texor/issues/60, cc @ajrgodfrey.

Consider the following .Rmd

---
title: "bulleted list issues"
---

## Good bullets

- one
- two
- three

## Bad bullets

-   one blah

-   two what

-   three

When rendered to html_document the "bad" bullets have a blank line between each bullet point, which is read as "empty line" by screen readers.

When rendered to rjtools::rjournal_web_article both sets of bullet points have a blank line between each bullet point.

It would be good if the rjtools style did not introduce blank lines in the first case (and authors were encouraged to use this form). The blank lines appear to be due to <p> tags nested within <li> tags.

dicook commented 1 year ago

This is best handled by distill

dicook commented 1 year ago

Posted at https://github.com/rstudio/distill/issues/496#issue-1916677305

cderv commented 1 year ago

I made an answer in https://github.com/Abhi-1U/texor/issues/60#issuecomment-1738814673

In short:

When rendered to rjtools::rjournal_web_article both sets of bullet points have a blank line between each bullet point.

I don't know why you get this. I'll comment on rstudio/distill#496 as for distill I don't think this is the case