wviechtb / mathjaxr

R package to make use of Mathjax in Rd files
47 stars 6 forks source link

Paragraphs starting with an equation puts attached text on new paragraph #13

Closed jassler closed 2 years ago

jassler commented 2 years ago

If I have a paragraph starting with \mjseqn{} or \mjeqn{}{}, everything after it is put in a new paragraph. As soon as I add a word in front of the macros, it works as intended.

#' Note that \mjseqn{S} can also be empty.
#'
#' \mjseqn{S} should be on the same line as the rest of the sentence.
#'
#' Unlike Lexcel, ...
Rendered math equation that displays the text after the equation on the next line.

This is rendered in RStudio, both with the mathjaxr::preview_rd function as well as with ?myFunction after doing a devtools::install()

wviechtb commented 2 years ago

This has already been fixed in the devel version.

jassler commented 2 years ago

Works, thanks!