emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Canonical way to strip off all markup from an element in Org exporter backend?
Date: Fri, 22 Dec 2017 20:31:09 +0000	[thread overview]
Message-ID: <CAFyQvY3A43R7m7eaS=b63SeATT-QQb4cJ4fNYZoFOgfT_HhV6g@mail.gmail.com> (raw)
In-Reply-To: <87y3lwjh45.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

On Thu, Dec 21, 2017 at 9:22 AM Nicolas Goaziou <mail@nicolasgoaziou.fr>
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

[-- Attachment #2: Type: text/html, Size: 1681 bytes --]

      reply	other threads:[~2017-12-22 20:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-20 18:30 Canonical way to strip off all markup from an element in Org exporter backend? Kaushal Modi
2017-12-20 22:04 ` Nicolas Goaziou
2017-12-20 22:11   ` Kaushal Modi
2017-12-20 22:27     ` Nicolas Goaziou
2017-12-20 22:41       ` Kaushal Modi
2017-12-21 14:22         ` Nicolas Goaziou
2017-12-22 20:31           ` Kaushal Modi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFyQvY3A43R7m7eaS=b63SeATT-QQb4cJ4fNYZoFOgfT_HhV6g@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).