emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Canonical way to strip off all markup from an element in Org exp


From: Kaushal Modi
Subject: Re: [O] Canonical way to strip off all markup from an element in Org exporter backend?
Date: Fri, 22 Dec 2017 20:31:09 +0000

On Thu, Dec 21, 2017 at 9:22 AM Nicolas Goaziou <address@hidden> wrote:
    (let ((no-thrill (lambda (o c _) (or c (org-element-property :value o)))))
      (org-export-create-backend
       :parent 'ascii           ;or `hugo', depending on what you mean
       :transcoders (mapcar (lambda (type) (cons type no-thrill))
                            '(bold code italic strike-through underline verbatim))))

Five locs. Not bad either.

Thank you. That also looks a cleaner way to implement what I want.

You're basically describing `ox-ascii' with stripped emphasis markers.

Exactly. That's why I suggested extending ox-ascii from this "raw" backend.

At this point, I'm not convinced we need this in Org proper.

That's understood. No problem. The snippet you suggested above serves the purpose very well for now.

Thanks!
--

Kaushal Modi


reply via email to

[Prev in Thread] Current Thread [Next in Thread]