From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iKFAItUJ52XlowAA62LTzQ:P1 (envelope-from ) for ; Tue, 05 Mar 2024 13:02:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iKFAItUJ52XlowAA62LTzQ (envelope-from ) for ; Tue, 05 Mar 2024 13:02:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="AE2lgNT/"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709640149; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=34zVtXIoPYVMOZ5/ikQD1OEn9vGq3hGaZd0d7XnrcNY=; b=ZgWpcTP1XTh4vpR0t36KYBk88WC4szaUeIsZqNZ61654Ti5GkBOMR1owJlixQXohIj8vPy CfP0+6v2SE9D8SE5Eh3c1J7EHUbHvSCLyD7/R25vk7XGtHQxntL68UVffDuxdGyn1exGlX HbSVjmg0D5MbDdzI1WKHKAN9DIKQKblgRnYKfg/NoBU2CUDlnq8EAZZxW5fIn0j/5Ryouy b7+FMPv5L7ZnwQzqzqtcfcPYwg5HhJAenPv0fs+LHQi/J1WGCCQXE+t8GJ0F7jSQ3rYNVE S3O4Qp9o/wq5vOHCsQIDzywlZnnPNWMEn4VgRpSG+dysCWKmfkaSzYlY4t/Ckg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="AE2lgNT/"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709640149; a=rsa-sha256; cv=none; b=FWlhCYnp5+CSYLwCo6BYnxPh1OCeG9WSeD+DyzZlt4XCyOMscGK1Krsas7r6FDpy4Izf6a wGl104OHuLR3H4H7mu1FehEF1GQduXWXqhIyDB8fwi0OMFyv/gCc3I2OPWmb5lnQe03khY pY7VuYIv4pfElR5NzNVkeQRVnGaAkhKB2m4jYZSpLUO5nL96B3swekuQGhAWY7lIlNckhV CkWpL7aCLHuqUcNHYkz0lw5WJNiHkCy38tcw6JNXEEIU0qqhzbwiTYV+yFvloH8LfmFoyh uOh7uJcqKRL6cMGMXoqnIIxhY/xnphk5s7i9V3MkzNOggbk/Jd5Tr5db/sqFcA== 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 4FBD36A06F for ; Tue, 5 Mar 2024 13:02:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhTUE-0006qt-9x; Tue, 05 Mar 2024 07:01:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rhTU5-0006p4-Ud for emacs-orgmode@gnu.org; Tue, 05 Mar 2024 07:01:27 -0500 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhTU3-0007ZW-2C for emacs-orgmode@gnu.org; Tue, 05 Mar 2024 07:01:24 -0500 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-51341a5aafbso2594400e87.0 for ; Tue, 05 Mar 2024 04:01:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709640079; x=1710244879; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=34zVtXIoPYVMOZ5/ikQD1OEn9vGq3hGaZd0d7XnrcNY=; b=AE2lgNT/LRRO4lZJmXQvPZ6Gw9ChSUeuWUNu2tWiDLvdYx9Yfjm3MIQTt3LTgSzHR/ T2vi7kWqk7LrwtEgz9He3SA36eR3tZezM+onxdafcUR/bieZllC0irG0XI/9Hqpmjm+O JeJJ578utvxwKiy0ev0qavwzl6og7Ga3M7rwHMBZUNwaki+dXEIWDHtl/9HzXLlmskVf I3znuRS6SSP5GNwzo/ZH/LderBnR1VRx8olIhqhuCXSOcRydVU0PVxSPipkmfmJxuraO rvP6s0On8/0Z88lGH3yIET6Dj62VgiVR/Si27Gr1caBDeqjZDg+MghsgFXEQJ/N1ANly xKgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709640079; x=1710244879; h=content-transfer-encoding:in-reply-to:mail-followup-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=34zVtXIoPYVMOZ5/ikQD1OEn9vGq3hGaZd0d7XnrcNY=; b=t/dIX5dCuDCZ5I8Xh1tysd4eb5Kg2f1Jph/aoDw9ve2ILzgW4/sRWmV/4veyvunYWO vcArDfI7BvDB1yB+jamNOqrVtlRlUsQMfWNrtjo1KIN4+LUVOP5D+gGTw7M0o7oWb4zO b4BDpg0FcFpEes5XNdI3QaYAl5wkXzTjthv3AcbkQxvFceyb2rof3wZQKcbRRKrTuYD9 1Kgltuqs/mBo18bBIHuEIs/2SeAY8M9VbjAdxEWykhdAIsUPxKEVCZInKmO0dDiw2wW3 /DpYfBcCWUGfIA5fdrLhreaBC5lW7CDgH+nskqE0NetEAQ+qCWcz+5nm/Sjy9ujHVk3s gMDQ== X-Gm-Message-State: AOJu0YzMJ+Fhtg2PFPL30ZPaHHNzTaWTSAAbvYPMieJUtRfLu61zo3YR EDtdx6yFyzXr9el1Azhqz1jb4XB9s8EpvdKa6SJuhgRXsnWP+CyyWEUJ6Z3O X-Google-Smtp-Source: AGHT+IHQSijCy6nmfxkF3uZtHp5zjP9i3iEZUII6Wp7Kdb3hib2GwkJv3NzHrKyJF6MVVL9f5W2D8g== X-Received: by 2002:ac2:46f9:0:b0:513:1551:e6 with SMTP id q25-20020ac246f9000000b00513155100e6mr937927lfo.50.1709640078425; Tue, 05 Mar 2024 04:01:18 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id g9-20020a19ee09000000b00513263b33f6sm2099435lfb.68.2024.03.05.04.01.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 04:01:17 -0800 (PST) Message-ID: Date: Tue, 5 Mar 2024 19:01:16 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command Content-Language: en-US, ru-RU From: Max Nikulin To: emacs-orgmode@gnu.org Cc: =?UTF-8?Q?Martin_Edstr=C3=B6m?= References: <87wmr1rc2w.fsf@localhost> <874jdzjqkk.fsf@localhost> <6e49c590-ad27-4fb0-b1f2-6a89c60a0b58@gmail.com> Mail-Followup-To: emacs-orgmode@gnu.org, =?UTF-8?Q?Martin_Edstr=C3=B6m?= In-Reply-To: <6e49c590-ad27-4fb0-b1f2-6a89c60a0b58@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 0.83 X-Spam-Score: 0.83 X-Migadu-Queue-Id: 4FBD36A06F X-TUID: lVpDDjgPgBFt On 25/02/2024 17:41, Max Nikulin wrote: >> Max Nikulin writes: >>> So `shell-quote-argument' is necessary and quotes around %i must be >>> stripped similar to %s in mailcap entries in `org-open-file'. ... > Please, revert the commit that added a misleading recommendation. ... > It should be more reliable to pass fragment to command stdin. It can be > done if %i is missed in `org-latex-to-html-convert-command'. I have realized that there is `org-latex-to-mathml-convert-command' introduced a decade earlier and affected by the same issue with possible leak of formula to shell command. Even if there are reasons against obsoleting `org-latex-to-html-convert-command' in favor of `org-latex-to-mathml-convert-command', both user options should be handled by the same function. I am unsure if it is an intended feature that when an org file is opened from a remote location like /ssh:... then `org-latex-to-html-convert-command' is executed on the remote host. It makes implementation of stdin more tricky. Ideally, it should be configurable where the command is executed: where emacs is running, where the document resides, or even with specific `default-directory'. Double quotes are recommended around %i for ODT export (info "(org) LaTeX math snippets") https://orgmode.org/manual/LaTeX-math-snippets.html and it should be fixed as well. It seems --preload=siunitx.sty should be recommended any more for latexml: https://github.com/brucemiller/LaTeXML/issues/2268 Problem width loading expl3-code.tex Perhaps at least some cases may be handled by pandoc https://list.orgmode.org/CAEPTPEzvx5ZhY5qrCJnFtAC_NpPC9d1a-Q=yE+XNTrPXiMpTag@mail.gmail.com/ David Lukeš. Using pandoc to convert LaTeX math to MathML Tue, 1 Mar 2022 15:59:36 +0100 Unfortunately I am not familiar with MathML enough to evaluate that there are no caveats with pandoc.