You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
The following changes to translate.R fix some issues I've been having with inline latex in confluence:
# Include this after line 64:
# Mark $ and $$ in plain <li> so that we can replace them safely later.
list_item_nodes <- xml2::xml_find_all(html_doc, "//li/text()")
for (node in list_item_nodes) {
text <- xml2::xml_text(node)
text <- mark_math(text)
text <- mark_inline_math(text)
xml2::xml_text(node) <- text
}
Change the regex in mark_inline_math to:
x <- stringi::stri_replace_all_regex(x, "(?<=[^\\s\\\\])\\$($|(?=[\\s:.,]))", "%1%D%O%L%L%A%R%", multiline = TRUE)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The following changes to translate.R fix some issues I've been having with inline latex in confluence:
Change the regex in mark_inline_math to:
The text was updated successfully, but these errors were encountered: