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 ms5.migadu.com with LMTPS id cM1KOyZIEmPNhwAAbAwnHQ (envelope-from ) for ; Fri, 02 Sep 2022 20:15:03 +0200 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 qydYOyZIEmNBUAEA9RJhRA (envelope-from ) for ; Fri, 02 Sep 2022 20:15:02 +0200 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 BA2DC15C97 for ; Fri, 2 Sep 2022 20:15:01 +0200 (CEST) Received: from localhost ([::1]:43256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUBC0-0004M0-KV for larch@yhetil.org; Fri, 02 Sep 2022 14:15:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUB9o-0004IA-Uv for emacs-orgmode@gnu.org; Fri, 02 Sep 2022 14:12:45 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:54823) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUB9Z-0005UZ-H6 for emacs-orgmode@gnu.org; Fri, 02 Sep 2022 14:12:44 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A2C0A3200935; Fri, 2 Sep 2022 14:12:25 -0400 (EDT) Received: from imap44 ([10.202.2.94]) by compute5.internal (MEProxy); Fri, 02 Sep 2022 14:12:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quanticle.net; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1662142345; x=1662228745; bh=jx RWSIattEduR4UMjQXwS558N2GrXZn+9U2pfxemG2c=; b=Z96FXphUGisQCdRD4i /dh78/bPCby0AxW4JTNjssASJZEzgKWDfVthG6XLIpgyh8rjNGHGFK8tHuTXsFOP IP9IBxuZC+rFwJYp8+SVeIGlGwUGg0dgSS+fQU929z6GzrmNwUjXNaCe/v6OKlb0 iIxARb8rW9EbIqhHXWoIl9AjmVxUdtRJV0veqAi8opGxxdzTDrEXTg6jpXzth+DO KkIT0F3CyEQp/+d7pWhPD6q5Il4zmHHLq6mCNfSkJk0boiC0Vrd4K9UrcTn5iQli 2XS2NEfxaiyOrzfLWcnA9q96yxb9I6yLXtiBkx+y4mqAyQm91F5t3IhowH+UX2e1 txlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1662142345; x=1662228745; bh=jxRWSIattEduR4UMjQXwS558N2Gr XZn+9U2pfxemG2c=; b=PW9rkRaZW3e1m03Vv4vP8gphFyS1QRnetjGDW8ClnoC9 7TAY63QvZ1iBTwe2/0LiBMabCTf+TLXf0jC9XsQuZgiAl1nrlgodShdDlaOZ1APV h1RrEqAn2Yi/vttABNLcI78oAGMvWLao7NBcX0O79Yb3ngou3nmRuYQ3mgAqoiqc 7wQi1/w+xqZKJHGH5W38DrnesOMlvNo3m6z5UTxk2bOBJ8PID8ZuMAFawRIUg8aX brGF7CjigHiS4iXenQNWCROiVbt3q3afL3E6Fg52TOI/vMl44yqHz04Z+i2Omglq Z3uhU3lPk1BY13HZ8/wMh8Nv72RjeK4SQy17VW7gDg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdeltddguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdft ohhhihhtucfrrghtnhgrihhkfdcuoehquhgrnhhtihgtlhgvsehquhgrnhhtihgtlhgvrd hnvghtqeenucggtffrrghtthgvrhhnpeehvdffgfduhfehfedvueffudekgeejkeffleeg geduveffjedtuefhffdtgfefveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehquhgrnhhtihgtlhgvsehquhgrnhhtihgtlhgvrdhnvght X-ME-Proxy: Feedback-ID: i0db1457f:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C2E9736A0075; Fri, 2 Sep 2022 14:12:24 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Fri, 02 Sep 2022 13:12:04 -0500 From: "Rohit Patnaik" To: "Vangelis Evangelou" Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Markdown export of description list with nested list [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/local/share/emacs/28.1/lisp/org/)] Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.25; envelope-from=quanticle@quanticle.net; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662142502; 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=jxRWSIattEduR4UMjQXwS558N2GrXZn+9U2pfxemG2c=; b=J27m4yTfRxDhUKhDxJRPmKtov6LA78lIzOJNJNbbSsm/5oe3A9sDonDm+MwtwkltbfGqYg knsTYYNnN5t6vRH6URFxAiCWpD/Wi+0G8nxQ4+ncHM9qOOLKZnPLi5r2mxcL4ktSaLmVUh G8Tp7CbyQruAhPQafXeql+kaIoDTEeWB8wNUEtEUab1JdeVXSleBlqlA5ntH+CAiDtTvcm jgY7s0pu0sfUPz7MnqHWLT5TdG7Yqy4XizEBRCmxvBPYMrptYGd5ksQbjzFyzXGtEtZvoI IMRDT80jTot0czvfMD5OVjM8JH2iy02bMQlayUREcrtdZmaJeSb5utIsaWwJ7Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662142502; a=rsa-sha256; cv=none; b=PwGK02fUfCdVo1brXS0Bgp+Pki8Pz9prz87DQgna1KDrmhhWGlIlU3Gp2OJAkUm4JiYChZ BPeez7M80Tnd9s4gv+7CKzASyYBYuowX4VI+G6nyT4HQ8U6kJsM2wk5rlQYeb+72qZ+QiP y1S7UtxLLQOaLLkLgmuWy6KQI6d0dnPalB/C04gP/k0Sm3M2Pd3iCR10zi+9OufO3HW0aP dQCCHvRabJ7nr9tupND9a7NxVNIwo1LuFM0WgfaISU6jixcROK2pIEcAPGp5nGsHliEOgR LIQ2+8nHYV74hu/j3Bsdth1y0Xjr/JqlOY6Jihh/lKbkmFwDmbE0/4ooeHw7rQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=quanticle.net header.s=fm1 header.b=Z96FXphU; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=PW9rkRaZ; dmarc=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.84 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=quanticle.net header.s=fm1 header.b=Z96FXphU; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=PW9rkRaZ; dmarc=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: BA2DC15C97 X-Spam-Score: 3.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: OpX6cFOUSVXA As I understand it, the bug is in `org-md-item'. It formats the tag portion of the description with **%s**, and then simply concatenates the content. This is fine when the content is a simple string, but when the content includes line breaks (i.e. when content is itself a list), it doesn't realize that it needs to include a line break between the tag and the content. ox-html handles this case correctly because ox-html distinguishes between plain list types, using
  • for ordered and unordered lists and
    &
    for description lists. I think this issue can be fixed by prefixing `contents' with a newline if `tag' is present and `contents' itself contains multiple lines. However, this feels like a hack, and I'd be open to better approaches. -- Rohit