From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mAPcCvuGkGDDJAEAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 01:27:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id iK1pBvuGkGDjMQAAbx9fmQ (envelope-from ) for ; Mon, 03 May 2021 23:27:55 +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 99FDE26DD5 for ; Tue, 4 May 2021 01:27:54 +0200 (CEST) Received: from localhost ([::1]:40254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldhyj-0005w2-On for larch@yhetil.org; Mon, 03 May 2021 19:27:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldhSR-0006Jt-9d for emacs-orgmode@gnu.org; Mon, 03 May 2021 18:54:31 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:50987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldhSP-0004at-4L for emacs-orgmode@gnu.org; Mon, 03 May 2021 18:54:30 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 3521F1BF204; Mon, 3 May 2021 22:54:25 +0000 (UTC) From: Nicolas Goaziou To: Timothy Subject: Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export References: <87ft0bff7q.fsf@gmail.com> <87lf8v7q2z.fsf@nicolasgoaziou.fr> <87h7jjitkb.fsf@gmail.com> Mail-Followup-To: Timothy , org-mode-email Date: Tue, 04 May 2021 00:54:23 +0200 In-Reply-To: <87h7jjitkb.fsf@gmail.com> (Timothy's message of "Tue, 04 May 2021 02:03:00 +0800") Message-ID: <87zgxb5syo.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.201; envelope-from=mail@nicolasgoaziou.fr; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: org-mode-email Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620084474; 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; bh=OT2bkj1jhLAUHCPpVOg0USkNmbfjJQcXJvGzGVGeDu0=; b=gIJTJIGPOq79aijUbdxKfvbZ2S0dCDzWkXrJXhmxh3zNX+P5/5IikW4crislJw2xwuLJjC gmCJu0a0/xUKxq7bjOaIL6Br8oVsiUZvIS1SY2QqfOg8WYR57yPbzpA7YueDymoz3RE8kk roE3iwFiEMg5F0/1CMlDSpENRgSn8FcJVcBzyTdV7oPU9wItOaxBZVsAyDARDon4PIf0vk TsK17SKx+p4FHyGmnnDk9pu5ET2/PVPD1DsCSgqto6NgaHqDL0qKuHrmI3QivxbQL5B3xR GElCcgZD/UtjI095f6HfBr4lJkLWMAiazBq0+qRN7WqKoOiexszvTl9wIV+5YA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620084474; a=rsa-sha256; cv=none; b=WdaSfyvwGntgk6Vc98sZmAOsgeC96JzYcLIUObNuG3OPyX4aFjaLixpkx8W+e8P9O0FOPV KCyt9cU/cJ5IFPwnvxWjl+G2n1rpR2guVVQ/FINqyVOOF4B+GHEeFiC0qRFdkXO8+Xn5st Ty526AE6JismgYpwjNrKMxHJ4ORNXE6EA0dd6TCFhhVnpQ+jnGjrDsbQPm7x5KIUeQdAQs R9jKHUl9TNCl0cJ+yynBz3bEfNcIfY6Bhu8Ri0SrBk2RXNXQeBoFb0qoc5jrSVZO4TlLza P3LYedd7U6vwpyiet/HaiaphmFiRPKWNCeWs+6sBKOWjSRKom7OKYKPr2v6+3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 99FDE26DD5 X-Spam-Score: -1.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: 12plJkhYdf9e Timothy writes: > Actually, since writing this patch I'm not sure that $$-surrounding > \begin{}...\end{} environments is also a good idea. I'm inclined to > leave this out of the patch. Sounds good. > I do rather like the `rx' macro, however I'm not sure that > (rx bol "\\(") is really an improvement over "^\\\\(" in this particular > case. True, but I still prefer `rx'. I guess I wrote too many backslashes. Anyway it's a nitpick. Do whatever you want. >> Otherwise, it is a macro. We can assume it lives outside math mode. So >> maybe the "Unrecognized fragment: %S" is in order in that situation. We >> could also let HTML export back-end deal with it. I don't know what is >> better. > > I'm not sure what to do here either. Perhaps nothing/HTML backend? I suggest to re-send to HTML backend `org-export-data-with-backend', to be consistent with the rest of un-handled objects. > Finally, I think if this case (lone macro) is handled, there aren't any > possible "Unrecognized fragment"s that could be passed, and so that > condition would no longer be necessary? Yup. If you handle $$ $ \( \[ and macros, you're set. Regards,