From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Canonical way to strip off all markup from an element in Org exporter backend? Date: Wed, 20 Dec 2017 23:27:22 +0100 Message-ID: <87o9mthw6t.fsf@nicolasgoaziou.fr> References: <87wp1hhx9b.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRmpk-00060d-J7 for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 17:27:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRmpg-0005BI-J8 for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 17:27:28 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:37279) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eRmpg-0005AX-CA for emacs-orgmode@gnu.org; Wed, 20 Dec 2017 17:27:24 -0500 In-Reply-To: (Kaushal Modi's message of "Wed, 20 Dec 2017 22:11:34 +0000") 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: Kaushal Modi Cc: emacs-org list Kaushal Modi writes: > Thanks! I feared so. Then the strip-HTML-tags approach seems to be the > quickest. You must be kidding. It must be around 8 locs. See for example `org-export-toc-entry-backend'. > Would there be an interest to add that to the core something like a "base > class" of exporter backends? I fail to see how it could be generally useful. > "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. What are you doing with entities, footnotes, latex-snippets...?