From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qPoGGg1OkWCdBAEAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 15:37:17 +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 cEnHFQ1OkWAvEwAA1q6Kng (envelope-from ) for ; Tue, 04 May 2021 13:37:17 +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 CE79E132E0 for ; Tue, 4 May 2021 15:37:16 +0200 (CEST) Received: from localhost ([::1]:35818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldvEg-0000uh-TZ for larch@yhetil.org; Tue, 04 May 2021 09:37:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldv98-0004rE-GT for emacs-orgmode@gnu.org; Tue, 04 May 2021 09:31:30 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:33638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldv95-0001qW-B0 for emacs-orgmode@gnu.org; Tue, 04 May 2021 09:31:30 -0400 Received: by mail-pg1-x536.google.com with SMTP id t22so6928630pgu.0 for ; Tue, 04 May 2021 06:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=aeurNXuDVqzSFaoI3ixAHFwIF1Q+zvUCXtcYeZzAG+w=; b=NEOh4JTpTtGfuPisyXytNF36t0aqPaPAT61IR4yu/e37GRY/8yq6TsgBNvNGqDjGII hTOLsmKgDzNJspDkvF6sCJpNvODzEjZPAnFSQTF7galZYKMLEpy5/R5SoSI7bt8rDa1h j+u4ReXZw6fo34b8LUAGso43Mr98uA4EiFlGRqj/THgJ8kqhaxDX2mnERoBjjSOqhGBr yXLC5rDFCd4uoL4LbV9fN7Dmwad95FmZgv9I0VDWvvEuf5s3cBWd30QeDe/Ur7gNACSv MsHdDgsNGfjY/zpDHNR7Z2zvY2EkRBvm7wzVEyYcr5y/aoLMRxRR3mAWCbANBXjr8aQO 4Vdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=aeurNXuDVqzSFaoI3ixAHFwIF1Q+zvUCXtcYeZzAG+w=; b=cKWRPSyYf5VXeloioNUIQH9coYK3aWGMTLwILwGL+9ypVNPM+VE3H0FtbGwvsHxTiZ fWWJQySLkBe3SqewuCjjUlrpPJj1j3wzE/D9ZxqKdpkViA19ezfwalyP5HHAu8KDzo3y USP+UddQJHr+lcp/zfHwy+kWJp+CF647jYid7CnF75zZQTxxYmpBwArODi+VACbccSBz +wGz5D8c7b2B5v1rKTnlMf2t5Yd1Bx9GOUnS6TbexPJ2JexFwr1ZUb4WvmjmlBT5fhZe yM4/qPvIHLuE/Mf060vyg5obXOFF1L9I2fBVbaGIyrTEGH3hQ1XbzlQrDjWhjSe4vQn5 6hMg== X-Gm-Message-State: AOAM531XCqH4fF9dqrB6u0lmMRyY97hjORhkeO3JsQ9acfYkPEpBIdZy QwW4A6v6QrgPqgYweQEXhDK/SJDjtCs= X-Google-Smtp-Source: ABdhPJwIVzuHjTrwD0Lm7K5SUX1Ul921B8htS2Nh4/YqKrOM7jlhyaq+NP7uv4dxsVh25D9i63l5tg== X-Received: by 2002:a17:90b:b05:: with SMTP id bf5mr28761785pjb.123.1620135085334; Tue, 04 May 2021 06:31:25 -0700 (PDT) Received: from localhost (180-150-91-8.b4965b.per.nbn.aussiebb.net. [180.150.91.8]) by smtp.gmail.com with ESMTPSA id l35sm3367153pgm.10.2021.05.04.06.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 06:31:24 -0700 (PDT) References: <87ft0bff7q.fsf@gmail.com> <87lf8v7q2z.fsf@nicolasgoaziou.fr> <87h7jjitkb.fsf@gmail.com> <87zgxb5syo.fsf@nicolasgoaziou.fr> <874kfjmasa.fsf@gmail.com> <877dke7it7.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.4.15; emacs 28.0.50 From: Timothy To: Nicolas Goaziou Subject: Re: [PATCH] Wrap LaTeX snippets in $$ with markdown export In-reply-to: <877dke7it7.fsf@nicolasgoaziou.fr> Message-ID: <871rammxqu.fsf@gmail.com> Date: Tue, 04 May 2021 21:31:21 +0800 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x536.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, 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." 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=1620135436; 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=aeurNXuDVqzSFaoI3ixAHFwIF1Q+zvUCXtcYeZzAG+w=; b=qHJo4SiJoNCx7AibtSnuz/8c/IdYMVudsdjGMz22BCa2avZUN/tC67zsOQqIg9F6UOVi0I ib3HJJWmuWtEEYdwg6O7ym17E++o3vuVIsjjEAh2eMYUnLDDdIyX2EkmTEOGQd1quKynmJ KqsMscC3SGMvwF+J6meFF6eZbcuSIg2KFQ/zXMhGqMOi5OIV2vWxg43bySBTuVlmMQTxyy momRWxf/CZgqBfuGHmn5GYiDpL9355I0boH7RZ1o9Le+cksUQTJh2AkpI47I819k288RG5 bNBdD6lHIEVSb2Tad+LN5Qn/k9XfqxAqFf5YAszyr0vGzhLmpn+CAPBh4Z5Y2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620135436; a=rsa-sha256; cv=none; b=sJ55+kcBsTIuX6HwJcTsmBvceUdxVR5QrukvhYuir1I25foQWWJyCJgW4i5a0xSf39EUwn 32EiYCJQPDSiyacLFCcIcQRgNx16cYTYSbWzmtnmNwuqKQ82bynaj8hYd/scmre+jOD/LQ lxMhUl32hMt0fWsEWiL7wYEnUPkukBS2W8JIMGPJT+Rzp/H9axgNNFTzBdm7PD0pQ6TXc4 1JojKT5OagOcGBR1UFt4gC+e8mcFk7hCluoZPHzoLm4xNPfg4lPc2kxbzmVZOLwH9/UTQw fO3V2yQbF2fUtf/S2lKtFxF6nDHDKhSfzvPm2vX7G6zBlUJ5HrI1NdIrvAjjGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NEOh4JTp; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NEOh4JTp; dmarc=pass (policy=none) header.from=gmail.com; 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: CE79E132E0 X-Spam-Score: -2.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: IFxJu+RntDNW Hello, Nicolas Goaziou 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. To speak personally, at the moment I use mathjax for HTML. I'm quite content with the markdown output from this patch without what's discussed below. However, if/when I can get the SVG baseline to work with dvisvgm I plan on switching to that for HTML files. However, I'd consider this behaviour undesirable for markdown. The main reason why I'm hesitant about including s in Markdown, is because unlike etc. the output now relies on external files. >> 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. >> > 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. I'm happy to strip this out of the patch (there's always advice for my own config...), I just thought there may be people who like me are interested in s for LaTeX in HTML, but not in Markdown. -- Timothy