I want add a code-chunk with pseudocode in my bookdown project, but i dont found a proper way to do this.
An this old issue on github/bookdown they talk about this feature, but I found nothing newer.
In this tex.stackexchange post they generate pseudocode via latex which is ignored in Rmd files.
```{}
**INPUT:** input;
**OUTPUT:** result;
**IF** this_is_True:
do_this;
**ELSE**
select B from input;
do something whith input;
**FOR EACH** $a_i$ **in** B
do something with $a_i$;
```
The code shows an example chunk which i want to have transformed in this:
.
Currently it ignors markdown and the $
symboles to make mathematical expression (letter 'a' with a small index i).
Best regards
ralph
update 29.04
- example code block from Rmd-file and add a simple expected output