Skip to content
Discussion options

You must be logged in to vote

Actually, I was able to find a direct solution to my question. I received a comment from Albert Krewinkel (@tarleb) on my question on StackOverflow. I copy below his comment:


You can build your own evaluator with a Quarto Lua filter:

function CodeBlock (cb)
  if cb.classes:includes 'markdown' and cb.classes:includes 'eval' then
    return {cb} .. pandoc.read(cb.text).blocks
  end
end

Save the code to a file in your project and add that file to the filters YAML entry:

---
filters:
  - markdown-examples.lua
---

The filter requires slightly different syntax though:

```{.markdown .eval}
[Quarto](https://quarto.org)

This isn't fully satisfying though, as it only supports pandoc's Ma…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@elgabbas
Comment options

@mcanouil
Comment options

@mcanouil
Comment options

@elgabbas
Comment options

Comment options

You must be logged in to vote
1 reply
@mcanouil
Comment options

Answer selected by elgabbas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants