Code blocks in org-mode generally print output under #+RESULTS:, but I have noticed that this is not displayed when github renders the org file.
For example, the code block in the file, https://github.com/prtkm/ionic-radii/blob/master/readme.org has a print statement that produces a #+RESULTS block, which can be seen in the raw file but not on the github rendered page. Am I missing something here, or is github not currently setup to do this?
I realized this was happening because I did not set :export as both on my source code header. The default behavior is to only export the code.
Closing this issue.
Cool, thanks for letting us know you got it fixed up.
@prtkm yes, should be the same behavior as in the Emacs implementation
for future references, see https://orgmode.org/manual/Exporting-code-blocks.html. add :exports both to view the results as well as the code block.
Is this working with :results verbatim? I'm not having any luck.
@GregorySchwartz I look at this and I don't see results in there. I am trying to set results to an example, but, without the #+results tag. With the results tag, the results don't show up. When I remove the results tag, they do show up.
@grettke iirc you need to specify :exports both for the results block to also be exported
@wallyqs Hi Waldemar. Before I posted, I tested it out 10 times. Seriously, 10 times. I wanted to be totally sure. So finally I was convinced that on my account, it didn't work. Then I posted here. Then you replied. And finally it worked just fine. Yes, you have magic powers of there was an error between my keyboard and chair. FWIW, I am using :exports results and that works perfectly. Thanks and have a great day.
Most helpful comment
I realized this was happening because I did not set :export as both on my source code header. The default behavior is to only export the code.
Closing this issue.