How to markup org mode src block results?

Viewed 2097

In emacs org-mode, is it possible to apply markup to the RESULTS section of a SRC block output when exporting to PDF (or any export format)?

For example, here is a src code block:

#+BEGIN_SRC python :results output :exports both
print '*I would like this line to be bold*'

#+END_SRC

#+RESULTS:
: *I would like this line to be bold*

The RESULTS section is generated by the usual C-c C-c.

Normally org-mode will mark up text in * as bold, but it obviously doesn't do this if that text is in a RESULTS block (or, it appears in a SRC block). In my example, if I export this (PDF via Latex) then I just get the exact output of

*I would like this line to be bold*

...there's no markup.

1 Answers
Related