On 17/06/2025 04:32, jman wrote:
I just wanted to write in a tutorial the following:
#+BEGIN_SRC org
,* Meeting with friends
:PROPERTIES:
:LOCATION: At Stacy's
:DESCRIPTION: Be on time
:END:
<2025-05-28 Wed 20:00-22:00>
#+END_SRC
Here is the result:
#+BEGIN_EXAMPLE
BEGIN:VCALENDAR
#+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
Likely it is possible to modify it a bit to use with "#+call:".
Alternatively you may extend ob-org to support the icalendar export backend.