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 ms5.migadu.com with LMTPS id oPhAHFmsEmNEnQAAbAwnHQ (envelope-from ) for ; Sat, 03 Sep 2022 03:22:33 +0200 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 aM9/G1msEmNSZQAAG6o9tA (envelope-from ) for ; Sat, 03 Sep 2022 03:22:33 +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 0C4F5217CD for ; Sat, 3 Sep 2022 03:22:32 +0200 (CEST) Received: from localhost ([::1]:60274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUHrj-00062W-A2 for larch@yhetil.org; Fri, 02 Sep 2022 21:22:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUHrH-00062O-F4 for emacs-orgmode@gnu.org; Fri, 02 Sep 2022 21:22:03 -0400 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]:41865) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUHrF-0003wf-Je for emacs-orgmode@gnu.org; Fri, 02 Sep 2022 21:22:03 -0400 Received: by mail-pf1-x429.google.com with SMTP id l65so3464302pfl.8 for ; Fri, 02 Sep 2022 18:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date; bh=7Ka2SkRSoi8aMCxbMWkd8mrIKLEJrnSbFvSphqDVK7g=; b=WbFBBlKKsMwKD3riRVoaxLPXjtY+olaexXpt7YQwdAi1Vm64rOPvZOfQkHYvkvGm5J PMdvFxPc/RxzkJFAMtaGI4gwH5q3xkzipIjVy9k0AIlSK9wDLI0xC5kyY2Uz4Ak/EfWB WSeeHqDniG9LVpPwO0OCFk4czWHIzBy5PMUvUQYKKl9FsN2buUE3wwTwOCOoKpBsXJ9s 2PqvANHRtTyxu/pSHgSNmG+437Fpum2f66Xd+k7q+djdoYu5oZGb1XjovRVqYnC+KA5P gcukQzDo+f6+1OtjEmWd7z8OsxygSz7Mnj+uEo1XDUMn36xxrUaPlKsaXmoJN/jlccYD tw7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date; bh=7Ka2SkRSoi8aMCxbMWkd8mrIKLEJrnSbFvSphqDVK7g=; b=0sfnItmNUZ0/GTqUBt+QfRsE0WtaocoTxjMvyDBOxf+CCzO7Kh6DYQ7+DqnbHeciGO DOkZFZPeC98N3OOofO1Y5of3t4L481xBNcTe1OakVJWwbI7EERqJIkaojKb6cgSaaF8E wqtWsF8ZAm9ikt1Esa6gApw2OjhDV2H8rPfZ42LCljFC96hvxbRdLXQA9c6SpB96x9ge GPvDMiMuk7h0LXmbkG2XmX1uMFjQSTcueYFI4T1OvJ/S61xuInlzMH4JhUYw0KzEKjcG +ICKkCIMA4K4Nvv+0sDQllOrc1yPcPOP+nAElmEZDDDe0NZxRlsjU/oZEiGi5wvwUGj9 Vtjw== X-Gm-Message-State: ACgBeo2tvz0aufM7kF0/ieJnnBNlMLWdZf7M1RTxzXQXAQw52BxZF2d0 iaFoozpyvz8nH/Bmbc78Gm56oGlTFJ8= X-Google-Smtp-Source: AA6agR4LygmIJ39gmm/VW4Gob04gnVfQONbOuBA1B4ND91i+GKNJDDyMTdcgL2umcXFimvKRTIBiEQ== X-Received: by 2002:a05:6a00:244a:b0:52b:e9a8:cb14 with SMTP id d10-20020a056a00244a00b0052be9a8cb14mr39076610pfj.32.1662168118423; Fri, 02 Sep 2022 18:21:58 -0700 (PDT) Received: from dingbat (2001-44b8-31f2-bb00-842a-7361-87c7-2662.static.ipv6.internode.on.net. [2001:44b8:31f2:bb00:842a:7361:87c7:2662]) by smtp.gmail.com with ESMTPSA id b24-20020a630c18000000b0042a5e8486a1sm2070639pgl.42.2022.09.02.18.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 18:21:57 -0700 (PDT) References: User-agent: mu4e 1.9.0; emacs 29.0.50 From: Tim Cross To: Rohit Patnaik Cc: Vangelis Evangelou , 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/)] Date: Sat, 03 Sep 2022 11:11:04 +1000 In-reply-to: Message-ID: <86bkrxtfpq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=theophilusx@gmail.com; helo=mail-pf1-x429.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, 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=1662168153; 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=7Ka2SkRSoi8aMCxbMWkd8mrIKLEJrnSbFvSphqDVK7g=; b=k0pSuNXMG8oD9Ujha53Jw0KWetRzaIXW/XGdyM7rMSgJ2IyX+VpjxZF6VCbTCUqApjx8qX iwnpJz31HEB1MQJAt3GINGlhi65vKflXPWVhBDQpcuaYTmYGL5cxPnT/y2HuwxcWI9kO5Y iCnutowdeouC0sr435C0aKThfAQ8Al9M1gzAOc7KG7N+Fxj9tDy4ltjh2OEMxziYbEJzDQ 0yKXlYXckKxuhv96py0kGvQfLwaxSJRG4EabBYBkgPIOhJg1776n0zAsxtFGWe9rckltEJ TqKm/WeRIf0Atzxh2eKT9W6pdXD5RaXGc+/rHH0BB1jLDUYsxKSn+Tv6+JgA+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662168153; a=rsa-sha256; cv=none; b=Hi5fT73DmjwTpoedVlf09kZruXSw/FCFGWfN1sNrbVPm0TuZnzQSjy0tHBUhJ4znLwWE95 HFKneAx/U4HULYFVI+J/moSL7Fkg+KF+hvxyaqicsNJ89o8awJ/SK2opxgx+FlhbdEnXOA YJ4uM+SDLjfYG1LsKHlTVe1DqMPFXb+on8yMKB2Ii9NQVdl4Zn4uHksppXONPPhMR+SNpZ 4f8+/WdYKYcPS5gj8JqkcAVfZk0FpWmuTFq/ynU+KUFFHXYomxygmApYt9YhVS9RcefFJB pNP6Lij33fVD0zRjGA+7R2F+tyc9Zlx1hLlqHP7n6QeVt95X481lEzc7ctPsrA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WbFBBlKK; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=WbFBBlKK; dmarc=pass (policy=none) header.from=gmail.com; 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: 0C4F5217CD X-Spam-Score: -2.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: v1Ni/aXveN+q "Rohit Patnaik" writes: > As I understand it, the bug is in `org-md-item'. It formats the tag porti= on of the > description with **%s**, and then simply concatenates the content. This i= s fine > when the content is a simple string, but when the content includes line b= reaks > (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 f= eels > like a hack, and I'd be open to better approaches. > > -- Rohit I think the real issue here is that the particular version of markdown used by org-mode (see http://daringfireball.net/projects/markdown/) does not include support for description lists - it simply isn't part of the supported syntax. I"m not convinced adding support is a good idea as I suspect it will create other complications and only reveal other syntax limitations - it will be like pulling on a thread and could result in just unravelling everything. As it says in the version of markdown syntax used - | For any markup that is not covered by Markdown=E2=80=99s syntax, you sim= ply use | HTML itself. There=E2=80=99s no need to preface it or delimit it to indi= cate | that you=E2=80=99re switching from Markdown to HTML; you just use the ta= gs.