Max Nikulin <maniku...@gmail.com> writes:

#+name: src-org-example
#+header: :exports code
#+BEGIN_EXAMPLE org
,* Meeting with friends
:PROPERTIES:
:LOCATION: At Stacy's
:DESCRIPTION: Be on time
:END:
<2025-05-28 Wed 20:00-22:00>
#+END_EXAMPLE

#+header: :exports results :results raw :wrap example
#+begin_src elisp :var src=src-org-example
(org-export-string-as src 'icalendar)
#+end_src

Thank you the tip, very interesting.

For completeness, I will add that the support for handling org-mode code in block snippets must be enabled first, as explained here:
https://orgmode.org/manual/Languages.html
Or Info page: (info "(org) Languages")

And then run `C-c C-c` with the cursor over the line of the header of the caller, that will generate the expected output.

Cheers!

Reply via email to