-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Hi Garrick,
great package. I'm currently playing around with the CRAN version of your package and I encountered the problem that the epoxy chunk cannot handle inline instructions once a .transformer
is added. Am I doing something wrong or is this a bug?
Reprex
Example from the docs renders just fine
```{epoxy, .transformer = epoxy::epoxy_transform("bold")}
All cars stopped between {min(cars$dist)} and {max(cars$dist)} feet
from a starting speed of {min(cars$speed)}---{max(cars$speed)}
```
All cars stopped between 2 and 120 feet from a starting speed of 4—25
Fails once an inline formatting option is introduced
I have added a .dollar
for the first value that is inserted here (This formatting doesn't make sense here but it's just an example 😄 )
```{epoxy, .transformer = epoxy::epoxy_transform("bold")}
All cars stopped between {.dollar min(cars$dist)} and {max(cars$dist)} feet
from a starting speed of {min(cars$speed)}---{max(cars$speed)}
```
Quitting from lines 21-23 [unnamed-chunk-4] (test_file.qmd)
Error in `parse()`:
! <text>:1:9: unexpected symbol
1: .dollar min
^
Backtrace:
1. global .main()
19. glue (local) `<fn>`(".dollar min(cars$dist)")
21. epoxy (local) .transformer(expr, env)
23. glue (local) transformer(text, envir)
25. base::parse(text = text, keep.source = FALSE)
Execution halted
Metadata
Metadata
Assignees
Labels
No labels