Code Monkey home page Code Monkey logo

Comments (4)

yihui avatar yihui commented on June 2, 2024 2

This is a bug of blogdown. Thanks for the report! I'll see what I can do.

A further minimized reprex is:

---
title: "Short code"
---

# A notice

{{< notice warning >}}
Test shortcode notice
{{< /notice >}}

# Shortcode hugo vimeo

{{< vimeo 55073825 >}}

# Raw HTML

```{=html}
<p>a</p>
```

It's the raw HTML block that caused the problem (HTML widgets like leaflet will generate raw HTML blocks).

from blogdown.

yihui avatar yihui commented on June 2, 2024 1

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).

from blogdown.

yihui avatar yihui commented on June 2, 2024

Should be fixed now. Thanks! You can install the development version via

remotes::install_github('rstudio/blogdown')

from blogdown.

Redcozmo avatar Redcozmo commented on June 2, 2024

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 !

from blogdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.