Skip to content

Commit

Permalink
Revert broken simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
slodge authored Jan 6, 2024
1 parent 217ec96 commit 7d31165
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,10 @@ get_markdown_engine_fn <- function(
#' @noRd
process_text <- function(text, context = "html") {

# `markdown` is used to process text globally outside of `fmt_markdown()`
# Previously, `commonmark` was used.
md_engine <- "markdown"

# If text is marked `AsIs` (by using `I()`) then just
# return the text unchanged
if (inherits(text, "AsIs")) {
Expand All @@ -589,11 +593,9 @@ process_text <- function(text, context = "html") {

if (inherits(text, "from_markdown")) {

# `markdown` is used to process text globally outside of `fmt_markdown()`
# Previously, `commonmark` was used.
md_engine_fn <-
get_markdown_engine_fn(
md_engine_pref = "markdown",
md_engine_pref = md_engine,
context = "html"
)

Expand Down

0 comments on commit 7d31165

Please sign in to comment.