r-wasm / quarto-live

WebAssembly powered code blocks and exercises for both the R and Python languages in Quarto documents
https://r-wasm.github.io/quarto-live/
MIT License
100 stars 6 forks source link

Format live-revealjs for custom format #49

Closed Nenuial closed 3 weeks ago

Nenuial commented 3 weeks ago

Hi, Let me first say: thank you very much for the development of quarto-live: the possibilities are just amazing!!

I am trying to use quarto-live in one of my custom revealjs formats. I have tried to embed the quarto-live extension in the custom format using quarto install extension r-wasm/quarto-live --embed my-custom-format and from there just change the format key from revealjs to live-revealjs in my custom format's _extension.yml.

But this doesn't seem to work at all. Is there currently a way to do this and I'm just doing it wrong or it this currently not supported?

I can use my scss files and html include-after-body's etc. from my custom format extension inside a live-reveajs format and everything works just fine, but it would be extra nice to be able to "package" everything neatly inside an extension.

Nenuial commented 3 weeks ago

I'm quite sorry about this "issue". I found a solution by myself.

For anybody else trying to do this. Don't change the format key! In your _extension.yml:

contributes:
  formats:
    revealjs:
      ojs-engine: true
      filters: 
        - live

and I think everything works fine from there! (haven't tried everything yet, but the first few examples I played with seem to do really well).