From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yKqeDJSAF2JvhAEAgWs5BA (envelope-from ) for ; Thu, 24 Feb 2022 13:56:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yH9nBZSAF2K6hQEAG6o9tA (envelope-from ) for ; Thu, 24 Feb 2022 13:56:52 +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 7908D1A184 for ; Thu, 24 Feb 2022 13:56:51 +0100 (CET) Received: from localhost ([::1]:50080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNDfu-0000fn-2M for larch@yhetil.org; Thu, 24 Feb 2022 07:56:50 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNDZg-00038B-03 for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 07:50:24 -0500 Received: from ciao.gmane.io ([116.202.254.214]:41310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNDZd-0001CX-Um for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 07:50:23 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nNDZb-0009ck-8H for emacs-orgmode@gnu.org; Thu, 24 Feb 2022 13:50:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: Pandoc and nested emhases Date: Thu, 24 Feb 2022 19:50:11 +0700 Message-ID: References: <87sfshgfvt.fsf@posteo.net> <871r00we3i.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US In-Reply-To: <871r00we3i.fsf@posteo.net> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, 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" 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=1645707411; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=MhFvTRMv4DoN/0JM1H9gWUkHhgfaLv3lxLZyBvg/dS8=; b=iwwS378QBcduoyrs3eso850z3MEpRda3wxdGPziRf7KdC23zsB0W8nX0eWgKd2z7X3REK/ yHoeeo7T3sp7tkxibRkxYqI4LWhXWStv4GnVvFJ0u9hTi+bJVr3huTFD1XKOyMrvcDIoaK USN5m5DajNRwz0m0BSBCdsq10y37tploVOlU1pe0J9HnGfkhu9NyAILCWsPL6MbLwv20Pw xjuY8rApLPA4uvMPPadQGhCMolC/KBYCbsOQVRegd+MixydevvWlxBZCGWjkKy+VCQizMh JxbmGvXC264UscVwsDf5gfDnTLzaMbwepVQzUb7hdHutuyDikmrSe6vgILYzgw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645707411; a=rsa-sha256; cv=none; b=E1uZpQZRmseUK1PzIEcorEbAzJUWN14BeW7BEetGMhnZqjBPdCoyBHgz784yA744+L+v6P Y7X4zO9tpGxvpeMC9nwRNxMkiagoX9AATsPF+RXr45p2Hf5A2yCXa4TMPhzUuGoeJdA31U wdHayuDc6tkabHaO/RzG6zpXad6P8dDj5w6vDZ8nnXfT5GUK9S6DFp4FTNZw3BAbLhOiNm gI3tXbyxMLNZ+mVN10gZ7Sb0W7YdNuNvc/g4XCSRehYjuBGQllXDlg7RmL8lNVsWt01Ufo wXolf6E/6NIVLlL7nu6ZMtnfy03eGsMulEGagz/uqn8ABI09iIzCbKsnQUnsMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: -3.33 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); 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: 7908D1A184 X-Spam-Score: -3.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: PIaTvshGvFe3 On 18/02/2022 19:31, Juan Manuel MacĂ­as wrote: > Max Nikulin writes: > >> So formally this feature of pandoc is a bug (due to different kind of >> parser). It is the reason why a corpus of tests should exist in a >> format that can be easily imported from various programming languages. > > Your conclusions seem logical to me. It may sound a bit surrealistic to > think that Pandoc is doing it wrong precisely for doing it "right", but... Even pandoc is not perfect (at least not really consistent): printf '%s' '- [[https://orgmode.org/][Lorem :: Ipsum]]' \ | pandoc -f org -t html
[[https://orgmode.org/][Lorem
Ipsum]]
Default zero-width workaround does not work for e.g. for code snippets since it would break syntax of target programming language: printf '%s' '- src_haskell{monoidBSFold :: FilePath -> IO Counts}' \ | pandoc -f org -t html Examples are inspired by the following message: Cash Weaver. Bug with exporting list with link item containing "::" to markdown. Sat, 12 Feb 2022 12:12:45 -0800. https://list.orgmode.org/CABGRHLkLGXYgGNm4CXK_LjOTGTpsLO=5aWD=FyPd1aMy2QdBxw@mail.gmail.com