From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aHXtIEnvDmKnlQAAgWs5BA (envelope-from ) for ; Fri, 18 Feb 2022 01:58:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2MweHknvDmJCSAAA9RJhRA (envelope-from ) for ; Fri, 18 Feb 2022 01:58:49 +0100 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 CA616CB80 for ; Fri, 18 Feb 2022 01:58:48 +0100 (CET) Received: from localhost ([::1]:36188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKrbk-00034y-1O for larch@yhetil.org; Thu, 17 Feb 2022 19:58:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKrQk-0007Hf-NT for emacs-orgmode@gnu.org; Thu, 17 Feb 2022 19:47:27 -0500 Received: from mout01.posteo.de ([185.67.36.65]:33077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKrQh-0004cK-E9 for emacs-orgmode@gnu.org; Thu, 17 Feb 2022 19:47:26 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CB43E240027 for ; Fri, 18 Feb 2022 01:47:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1645145240; bh=5u53t91vxTZnttoGAtg1o4cSvjKkEJ5BwBluY6Euzq4=; h=From:To:Subject:Date:From; b=L4erFuMQq4voSOfZOAIo7LDmoUAJSocuqxv8RGQwTd5GUH7nISkTJfava6FwrMAyp mjg53s3BSovlsTIW3NBDxQKFXlcFuAdx3RV5r/qwDjwMczWaP7nMUgGZBpT44jYoKG s+4gSyN7/K7V/MDGXC3deGc7kb+5U25QeiXkuNfgWTP4Oe9k0b0mxXT8ThspB/+XFO Ix72g8aO4jeRdR4ZwfVxs0dSL+3eObK/5sY4iOE/zzpWe9TfuiEdJ5FWz6Yb876vyW s/v8ESw7/HJyF6egBerBjse7laIlX+s9+mhgOxh9Cc9sBw9m7yGiGLLh03ZqVvqpo+ 7NXcQ7zEEbItg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4K0ChS2RKdz9rxF for ; Fri, 18 Feb 2022 01:47:20 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Pandoc and nested emhases Date: Fri, 18 Feb 2022 00:47:18 +0000 Message-ID: <87sfshgfvt.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645145929; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lXCnjCqvSK6PK6enkz+capNGPFf758m2H4RKxPHnbLI=; b=P5Nk9jzx9d/XwoeLaWNV57+84H6iDiagSzOdXZmXBFfUrCPOQSmrUuKlaLYjj0dl4jOVAH 176TkVuPHrgtZiJFH3jA46R9/ZqwF71V1FW4Kabtf68mhLxbtc7eRBgOr6v5kEl05ihBLZ DqL5TuQd6OgDArCBoE8BlLh+lTat67h7sy47hsuQMRsgqlTuC/CzbxecVX0+d9K5adA2di wcgrgI8KhkucsCSI7SWIHaDu8R1INck2cagm64b/Je3EKW6IhhMVBPFz/VRhnbGeuaBzNH 6S6BkwwFlfyOTHy3S5FdXDji8iTC2UFrb4dIEIWSPEWTgam425pCEfiRZipGfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645145929; a=rsa-sha256; cv=none; b=dq+YNCoio7+6/O4RJCvUOLBaLkCe3h1vqOqp+u8IM3FYxdE/ODMRXj2bcXRPgDqzQ+QhC9 Vc31zQba78K65yCOdXqeY/ofhvnBKRf1rvJts83goC1B3l0dQMpXgrUX8NIw7yJwAWmytL M+SWqTng+w3mpmWPQD/ilXQCRwSoGIkS1/+jfwPKx5yDC1lz9hE78NoHlMhk0op9iOahxm DDV9gSM3UGhFRiWv378tc24K4OsNcTYg/MTtnLfLgEXC0HaI/79hWaajmmhvjSJRLz81Ta f9tj7DmckGV3QrhNkT3umubR/blYqPudeVqzo/vkE0Awp44dnXvce/X0s8UnNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=L4erFuMQ; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Spam-Score: -6.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=L4erFuMQ; dmarc=pass (policy=none) header.from=posteo.net; 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" X-Migadu-Queue-Id: CA616CB80 X-Spam-Score: -6.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: mL+u93Rm33zP Hi all, Sorry in advance if this may sound too trivial, imprecise or naive: it's just for my curiosity, as I've recently been doing some tests with Pandoc and I've seen something that has caught my attention. It is known that LaTeX-style nested emphases of the same category are not possible in Org. For example, the following string does not export to LaTeX as expected: #+begin_src org :results latex replace /lorem /ipsum/ dolor/ #+end_src #+RESULTS: #+begin_export latex \emph{lorem /ipsum} dolor/ #+end_export Otherwise, if you export to LaTeX with pandoc (v. 2.14.2), the result is (to my surprise) correct: #+begin_src sh :results latex str="/lorem /ipsum/ dolor/" pandoc -f org -t latex <<< $str #+end_src #+RESULTS: #+begin_export latex \emph{lorem \emph{ipsum} dolor} #+end_export If memory serves me, I think this was not possible before with Pandoc (neither from Org nor from Markdown, but I insist that I don't know if my memory is failing me too much :-)). Anyway, I wonder if it would be possible for Org to somehow implement some Pandoc procedure to be able to export nested emphases of the same category. Another (more abstract) doubt that arises, although I am not an expert in matters of grammar and specifications. If nested emphases of the same category are not possible in Org, should this be understood as a bug or a feature? What implication does it have if a external parser, like Pandoc, parses them just "fine"? Best regards, Juan Manuel