Embed ruby into mdbook markdown files

24 Views Asked by At

I want to embed ruby (at least ERB) in my markdown file in mdbook:

Something like:

# Hi

The sum of 2 + 2 is <%= 2+2 %>.

Desired result:

# Hi

The sum of 2 + 2 is 4.

Can I achieve that?

0

There are 0 best solutions below