R Markdown is showing some unexpected behavior when math mode is part of a list:
---
title: "Reproducible list/math error"
output:
html_document:
df_print: paged
---
The simple markup below seems correct but produces
* $\beta$ in the beggining is fine
* $\beta$ in the second line strangely forces a new line, and again if $\phi$ appears later
+ While a line with only text is fine,
+ $\beta$ in the beggining of a line does nothing, and
+ $\beta$ sublist is fine even when $\omega$ drops in for a visit
* Can someone tell me what's going on?
Please?
Which produces this output when I preview or knit to HTML (knitting to PDF using LaTeX produces correct output, but that's not the final format needed):
I can't reproduce this issue. The same code generated the expected output on my device, without the additional blank line before the 2nd line.
Rmd code
---
title: "Reproducible list/math error"
output:
html_document:
df_print: paged
---
The simple markup below seems correct but produces
* $\beta$ in the beggining is fine
* $\beta$ in the second line strangely forces a new line, and again if $\phi$ appears later
+ While a line with only text is fine,
+ $\beta$ in the beggining of a line does nothing, and
+ $\beta$ sublist is fine even when $\omega$ drops in for a visit
* Can someone tell me what's going on?
Please?
Here's my session info:
```{r}
sessionInfo()
```
Thank you all for your replies. The request for package version prompted me to run updates to see if that would fix things. Package updates didn't fix the matter, but an update to R version 3.5.3 did fix it.
I'm still not sure what caused the original error but I guess the lesson for me is to keep running updates.
Just for thoroughness, I'm showing the correct output (from the exact same script) and have added the sessionInfo as well. Thank you all again.
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
Thanks, and sorry about that. I didn't even realize this could be done! (I'm more used to Stack Overflow, where the answering and feedback mechanisms are more prominent.)