From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YLluMeCDgWB8rgAAgWs5BA (envelope-from ) for ; Thu, 22 Apr 2021 16:10:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oMUhLeCDgWBEAQAA1q6Kng (envelope-from ) for ; Thu, 22 Apr 2021 14:10:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2B50C122F0 for ; Thu, 22 Apr 2021 16:10:40 +0200 (CEST) Received: from localhost ([::1]:34542 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZa2R-0002qA-9c for larch@yhetil.org; Thu, 22 Apr 2021 10:10:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZa1P-0002d7-JZ for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 10:09:35 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:36594) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZa1N-0005dq-Hh for emacs-orgmode@gnu.org; Thu, 22 Apr 2021 10:09:35 -0400 Received: by mail-wm1-x333.google.com with SMTP id o9-20020a1c41090000b029012c8dac9d47so3348220wma.1 for ; Thu, 22 Apr 2021 07:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=btzOOo1rEw6epByQNp+MfdN787xeF1qByH1ri7/mqdY=; b=SIZ0EYFQZpED2uSCHOpWF+bPqIZX9xd3pGoqgwaUoMRAkfO+IftSrBFWRiqeL9LSyh 7AYKdIBy9Kd6TDDatHW7SzeYQ//kjzU21wocYiNIHV/b45LqYIbkjnGAINgArdmfXNuQ x+u8ru+Gex0Ps57JmCOqRr+Ga1coS6sCgkK5XucIDHwdCi4nr6hxB1jOle/qywXlweKb wX4KGE/H9TTMSoGWdUbEr9avx1P9pR9DpJd9tuIBE4iGPeM4GoHBYBn/zor2DM6O3SJV sZzVbjj9wv1HfdHwc3xdLIqdbIElFvHEkboM/8U4gCqLombO4E7H70U2D8orr5sqGe1A zeUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=btzOOo1rEw6epByQNp+MfdN787xeF1qByH1ri7/mqdY=; b=ToVqyaiQrbAWG0qqvMvpk1ndxB+71n9ffwxVXbGRC9pwECqY9CMjbrWFLeNLX5Qo7V CQXhJ4Y/fnnBPm9oCyBaS9CCfvnchVD8Xly3cZmhGZC0bssmC7i7xwuA7R+sYU7uv8pF iYKhmTzCLUSoRsQRAOq5fh5lqauNdDDe4J5AA4zXrLi2QJ4aHFBoH5v9YLSTfKW5JGUn iO4DI1egqUSQQ9GF4jQ64Nqc3MUEas8GxHYKkBJPdqBnSUqMzrrM7dwq/7A6JTgDXt2a zGA0gx1eToEdbA6YNskKZE1jxp7nJOBlWUJMzG5bY7Ay9EklrO2Isiiwo6erOPv0ssNJ i5mQ== X-Gm-Message-State: AOAM532li93BbOkgTFLgNE7wgAYfzl0BIoBZkH1jcvHM22HxFN2xvAyv l/nkzSdwocaHoDWin7vB8SsP/vOH18Ak9ZDuQcg= X-Google-Smtp-Source: ABdhPJyOZOoIdIoqbg1A0gBldVks3tqBHI1hR3wMLwnHo59vkJSIiJ2y7MkCSlGZzLo4I83iKGZYk5dF9UdLnpdXpfk= X-Received: by 2002:a1c:b342:: with SMTP id c63mr4095147wmf.162.1619100571119; Thu, 22 Apr 2021 07:09:31 -0700 (PDT) MIME-Version: 1.0 References: <87fszly7zg.fsf@kyleam.com> <871rb5ft6a.fsf@wi.uni-muenster.de> <87y2dcmcuk.fsf@wi.uni-muenster.de> <87pmyo16qr.fsf@web.de> <87h7jy4ebe.fsf@nicolasgoaziou.fr> In-Reply-To: <87h7jy4ebe.fsf@nicolasgoaziou.fr> From: Tim Visher Date: Thu, 22 Apr 2021 10:08:55 -0400 Message-ID: Subject: Re: ox-html Incorrectly (?) Puts HTML Into the `` Tag To: mail@nicolasgoaziou.fr Content-Type: multipart/alternative; boundary="00000000000065b4fe05c0903ae7" Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=tim.visher@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode> List-Post: <mailto:emacs-orgmode@gnu.org> List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=subscribe> Cc: Jens Lechtenboerger <lechten@wi.uni-muenster.de>, "Dr. Arne Babenhauserheide" <arne_bab@web.de>, Emacs Org Mode mailing list <emacs-orgmode@gnu.org>, Kyle Meyer <kyle@kyleam.com> Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+larch=yhetil.org@gnu.org> X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619100640; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=btzOOo1rEw6epByQNp+MfdN787xeF1qByH1ri7/mqdY=; b=dc9bOPdbXAIinj4whvT65o3yZpXLRSSzNF3M/eTuMuvbzpELBttQffIq4PiLtQPRdFHZuk Oadn4rOuvH8kK+ofxuc6dC4d1e9c8gC0IYwL7+h3SRSOfZ+RHwBYrytuy3d27hgTr3ZZxo 7EvXcJIdXaD77BbMKJMoCFWsN1+0fuM3B2N7zNGN9PIYvot70uAbMk5kNAU71qYJCT5lCC NTyTVQ9NWmeIHOKP2dNYmO4Sgnycw7HkOQGL5nXlku8U0yuBH6wHaGYvMzndtK9jfnzJ60 2DtJRATq/C+C0hXUaeaVTcjkAP/WXr/kDEj62rtQ43jsOAN1xLPlSQ9WdmfLEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619100640; a=rsa-sha256; cv=none; b=QYfiL2HtR4/eIS75+YcAdBEuJYasEwePJrjmKwIi7xB58h5MQ+OS3g5kze4CcnboLQ6ekp xn06l15UXti/CuxKatz/EuhNFY3tOXuOJYkgAlpc8YdlZxQbIs2zApeOVYEdgncVeEH+XT JBTCKv2FuMuWp3eYDUZxQhbmNBA8odNrCyekNorDbwIJJ627Yh0QREjIxN6XA++T++kto4 ANgPf4Fyuhou4EGMcwHFoqK0Wk10ZeuBboLmWxWcmEul1Apq2C4LLdLJY5vQ2UTCkkoMtc JkEOhIOTBd8Wy0st0A24p2ryWdiQde3F34lxJUo3BvuAcglrE1LFLmfWPVF3AA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=SIZ0EYFQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=SIZ0EYFQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2B50C122F0 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: QIyVpDjrHS9k --00000000000065b4fe05c0903ae7 Content-Type: text/plain; charset="UTF-8" On Thu, Apr 22, 2021 at 9:52 AM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote: > Tim Visher <tim.visher@gmail.com> writes: > > > Awesome. Do you know whether there's an official way to share this sort > of > > behavior between ox backends or is it just creating a function and > calling > > it from both places or something? > > Do you want to remove all markup from some parsed text? > > You could define temporary export back-end with > `org-export-create-backend', and apply it with > `org-export-data-with-backend'. See for example, how > `org-latex-headline' formats headings (`text' binding in the function). > > If that's the case, you need to know exactly what you want. It is pretty > obvious for bold markup, but what would happen to, e.g., a_b or \alpha > or <<target>>? > Thanks for the tip. What I'm thinking more is somehow getting the heading pre-output generation, stripping any characters that `org` would consider special (I'm hoping there's already a function that can at least mark 'markup' text in a given org string), and _then_ passing it to whatever ox function is responsible for using the title. That way it's as generic as it can possibly be. I confess though that I don't follow exactly what you're talking about defining a temporary export back-end. Why would that be necessary or beneficial to the end of teaching org how to use only the 'plain text' of a heading for the title in N ox backends? -- In Christ, Timmy V. https://blog.twonegatives.com http://five.sentenc.es --00000000000065b4fe05c0903ae7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">On Thu, Apr 22, 2021 at 9:52 AM Nicolas G= oaziou <<a href=3D"mailto:mail@nicolasgoaziou.fr">mail@nicolasgoaziou.fr= </a>> wrote:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gm= ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,= 204,204);padding-left:1ex">Tim Visher <<a href=3D"mailto:tim.visher@gmai= l.com" target=3D"_blank">tim.visher@gmail.com</a>> writes:<br> <br> > Awesome. Do you know whether there's an official way to share this= sort of<br> > behavior between ox backends or is it just creating a function and cal= ling<br> > it from both places or something?<br> <br> Do you want to remove all markup from some parsed text?<br> <br> You could define temporary export back-end with<br> `org-export-create-backend', and apply it with<br> `org-export-data-with-backend'. See for example, how<br> `org-latex-headline' formats headings (`text' binding in the functi= on).<br> <br> If that's the case, you need to know exactly what you want. It is prett= y<br> obvious for bold markup, but what would happen to, e.g., a_b or \alpha<br> or <<target>>?<br></blockquote><div><br></div><div>Thanks for t= he tip. What I'm thinking more is somehow getting the heading pre-outpu= t generation, stripping any characters that `org` would consider special (I= 'm hoping there's already a function that can at least mark 'ma= rkup' text in a given org string), and _then_ passing it to whatever ox= function is responsible for using the title. That way it's as generic= =C2=A0as it can possibly be.</div><div><br></div><div>I confess though that= I don't follow exactly what you're talking about defining a tempor= ary export back-end. Why would that be necessary or beneficial to the end o= f teaching org how to use only the 'plain text' of a heading for th= e title in N ox backends?</div><div><br></div><div>--<br><br>In Christ,<br>= <br>Timmy V.<br><br><a href=3D"https://blog.twonegatives.com">https://blog.= twonegatives.com</a><br><a href=3D"http://five.sentenc.es">http://five.sent= enc.es</a><br></div></div></div> --00000000000065b4fe05c0903ae7--