From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uOZ/BA9HkWA29wAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 15:07:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cOUxAA9HkWCqZQAAB5/wlQ (envelope-from ) for ; Tue, 04 May 2021 13:07:27 +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 5FC3E1225F for ; Tue, 4 May 2021 15:07:26 +0200 (CEST) Received: from localhost ([::1]:49240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldulp-0006ww-JR for larch@yhetil.org; Tue, 04 May 2021 09:07:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lduhi-00045y-L9 for emacs-orgmode@gnu.org; Tue, 04 May 2021 09:03:12 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:46727) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lduhe-0002uW-TU for emacs-orgmode@gnu.org; Tue, 04 May 2021 09:03:10 -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 relay5-d.mail.gandi.net (Postfix) with ESMTPSA id C32961C0016; Tue, 4 May 2021 13:03:01 +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> <87zgxb5syo.fsf@nicolasgoaziou.fr> <874kfjmasa.fsf@gmail.com> Mail-Followup-To: Timothy , org-mode-email Date: Tue, 04 May 2021 15:03:00 +0200 In-Reply-To: <874kfjmasa.fsf@gmail.com> (Timothy's message of "Tue, 04 May 2021 11:35:01 +0800") Message-ID: <877dke7it7.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.197; envelope-from=mail@nicolasgoaziou.fr; helo=relay5-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_H2=-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=1620133646; 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=kVUSC4UWTu8Bdc3SkeGZjJ3tEeIvK2rE1C+NYCFXqO0=; b=kd2bxI3l86KXFwXqcX2mveb7vWQGmCTz+mqHoUjFp1mOcamKhIn3CKK2kCV45raqWXht9W erHPgyceiln+h9GCwL8c5U3VBI0hAV+6oXbWr1Q/KFB5r/59CxTWjSBV5P4ithpEpaGEqs iTUNjbjw2dHj5Oh9fscZv/9PIqirR55FnZfQjURqTQjnjou5R8KTOienwLPD6O40i0+3ZT 3HNK6kQpV3bvJ8PL3r1C50eGtW3ufryPCG7dRI0/P/1M9yAE3VpkTehlRna35inWJf9mfx iIZ3mJ/MN1JrxapA0LGHXRsMLVN2EyCQ2hYNGlns+RiQN96VNul5CpN4sSpGHQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620133646; a=rsa-sha256; cv=none; b=fASQHd8mhb+HIzUQ7X9n9iCHl5MsbieAXyh6C1ICJ4PoDiJeqsTkAMJCUNEbU2ueWl1Ejd 3g6kAhPPFza4ib2zczW1LEBWcMhhcheg1qSTr4PxCWiE2Xg3iY9m4uQOmwu0fcgys8BtBB lX0G2fHN6b8OtFIq4rxVaVOX8spG0k61MVYz4xluk0Zeyk1zJkeGF3HOV8Q8uLFVylnh/+ LaC4cGbaO9Nki0RqdLwsKyEMzVDvJE4mrEpNeJRFZJ3v4zzeCqPUZfRFWV9pbce2ehReFS dNqoI2SFwSxx08NL+06ncFMbNgWCy8UH9oKsO2X/QuY3q2BmtGSlbZuYxoAUVw== 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: 5FC3E1225F X-Spam-Score: -1.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: YAsCZQW2YhiB Hello, Timothy writes: > Should one want to convert LaTeX images say to an SVG for HTML export, I > do not think one would want this behaviour to also apply to LaTeX being > exported to markdown. Why do you think so? This is consistent with everything else not supported by vanilla Markdown. > As such I see two 'sensible' paths forward: (1) just include LaTeX > verbatim when :with-latex is non-nil, or (2) introduce > `org-markdown-with-latex' which can be set to t/'verbatim or 'html. > > In the attached patch, I've taken the first approach. Let me know if > you'd like to take the second approach, or just inherit the HTML > behaviour for LaTeX after all. Obeying to :with-latex property means "ox-md" is somehow actively handling LaTeX fragments, which was not the initial intent, IIUC. The first idea was to provide a sensible default for such objects, because we're outside the specification anyway. I'd rather not overdo it. WDYT? Regards, -- Nicolas Goaziou