From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Canonical way to strip off all markup from an element in Org exporter backend? Date: Wed, 20 Dec 2017 22:11:34 +0000 Message-ID: References: <87wp1hhx9b.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="089e0828828086fb810560ccdea1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRmaa-0000UV-Tt for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 17:11:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRmaZ-0007JT-Pf for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 17:11:48 -0500 Received: from mail-yb0-x232.google.com ([2607:f8b0:4002:c09::232]:35648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRmaZ-0007IW-KH for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 17:11:47 -0500 Received: by mail-yb0-x232.google.com with SMTP id k2so16074509ybd.2 for ; Wed, 20 Dec 2017 14:11:47 -0800 (PST) In-Reply-To: <87wp1hhx9b.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-org list --089e0828828086fb810560ccdea1 Content-Type: text/plain; charset="UTF-8" On Wed, Dec 20, 2017 at 5:04 PM Nicolas Goaziou wrote: > You could write a dedicated (anonymous) back-end for that, Thanks! I feared so. Then the strip-HTML-tags approach seems to be the quickest. > if you have a clear idea about what "strip off all markup" means. > Would there be an interest to add that to the core something like a "base class" of exporter backends? "strip off all markup" simply means export something like "*abc* /def/ =ghi= ~jkl~ +mno+ _pqr_" as "abc def ghi jkl mno pqr". Think of that as a backend without even the minimal adornment that ox-ascii has... and ox-ascii can be a derived backend from this one. -- Kaushal Modi --089e0828828086fb810560ccdea1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 20= , 2017 at 5:04 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
You could write a dedicated (anonymous) back-end for that,

Thanks! I feared so. Then the strip-HTML-tags approach see= ms to be the quickest.
=C2=A0
if you have a clear idea about what "strip off all markup" m= eans.

Would there be an interest to add= that to the core something like a "base class" of exporter backe= nds?

"strip off all markup" simply means= export something like "*abc* /def/ =3Dghi=3D ~jkl~ +mno+ _pqr_" = as "abc def ghi jkl mno pqr". Think of that as a backend without = even the minimal adornment that ox-ascii has... and ox-ascii can be a deriv= ed backend from this one.
--

Kaushal Modi

--089e0828828086fb810560ccdea1--