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
In fact, in the above example, when the chunk leaflet is with parameter results='hide', there is no leaflet map (that's ok) and the notice and the shortcode vimeo are well displayed.
But when parameter results='hide' is deleted, the leaflet map is well displayed but the notice and shortcode aren't. They appears exactly as in code.
I've try with development version and it's working. Thanks a lot !!
I had solved the problem with this encaption solution (your comment in another issue) : r htmltools::HTML("{{< vimeo 55073825 >}}")
But it's better like that !
Redcozmo
changed the title
shortcode don't display with leaflet map in the same post
shortcode doesn't display with leaflet map in the same post
Jan 19, 2024
Actually you can also wrap the shortcode in a raw HTML block ```{=html}, which should work with any version of blogdown, e.g.,
```{=html}
{{< vimeo 55073825 >}}
```
This requires extra typing but is a little safer (the shortcode will be preserved when the Markdown file is processed by Pandoc---the Pandoc processing could mangle certain characters in the shortcode).
Hi and thanks for blogdown !
My problem is that Hugo shortcodes or theme shortcodes does not execute when leaflet chunk is execute in the same .Rmd file.
I'm using hugo-coder theme : https://github.com/luizdepra/hugo-coder/
In fact, in the above example, when the chunk leaflet is with parameter results='hide', there is no leaflet map (that's ok) and the notice and the shortcode vimeo are well displayed.
But when parameter results='hide' is deleted, the leaflet map is well displayed but the notice and shortcode aren't. They appears exactly as in code.
Reproducible example
Session info
output from
xfun::session_info('blogdown')
Check site
[TODO] Set "ignoreFiles" to ["\\.Rmd$", "\\.Rmarkdown$", "_cache$"]
--> I have exactly this line in
hugo.toml
but comment still remain[TODO] Found 6 files marked as drafts. To un-draft, run the command:
--> I think I can keep it like that...
[TODO] Found 1 R Markdown file to update by re-rendering:
--> I execute
blogdown::build_site(build_rmd = 'timestamp')
but comment still remainThanks !!
The text was updated successfully, but these errors were encountered: