[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Way to mark contents of an Org special block as verbatim?
From: |
Nicolas Goaziou |
Subject: |
Re: Way to mark contents of an Org special block as verbatim? |
Date: |
Sun, 09 Jan 2022 21:01:14 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello,
"Berry, Charles" <ccberry@health.ucsd.edu> writes:
> So,
> : (format "{{<%s>}}\n%s{{<//%s>}}\n" type contents type)
>
> has the contents already parsed and transcoded which you do not want. So use
> something like:
>
> #+begin_src emacs-lisp
>
> (let ((raw-contents
> (buffer-substring-no-properties
> (org-element-property :contents-begin special-block)
> (org-element-property :contents-end special-block))))
> (format "{{<%s>}}\n%s{{<//%s>}}\n" type raw-contents type))
I suggest to use
(org-element-interpret-data (org-element-contents special-block))
Regards,
--
Nicolas Goaziou
- Re: Way to mark contents of an Org special block as verbatim?, (continued)
- Re: Way to mark contents of an Org special block as verbatim?, Juan Manuel Macías, 2022/01/06
- Re: Way to mark contents of an Org special block as verbatim?, Kaushal Modi, 2022/01/06
- Re: Way to mark contents of an Org special block as verbatim?, Juan Manuel Macías, 2022/01/06
- Re: Way to mark contents of an Org special block as verbatim?, Kaushal Modi, 2022/01/06
- Re: Way to mark contents of an Org special block as verbatim?, Berry, Charles, 2022/01/08
- Re: Way to mark contents of an Org special block as verbatim?, Kaushal Modi, 2022/01/08
- Re: Way to mark contents of an Org special block as verbatim?, Berry, Charles, 2022/01/08
- Re: Way to mark contents of an Org special block as verbatim?, Kaushal Modi, 2022/01/08
- Re: Way to mark contents of an Org special block as verbatim?, Kaushal Modi, 2022/01/09
- Re: Way to mark contents of an Org special block as verbatim?, Berry, Charles, 2022/01/09
- Re: Way to mark contents of an Org special block as verbatim?,
Nicolas Goaziou <=
- Re: Way to mark contents of an Org special block as verbatim?, Kaushal Modi, 2022/01/09