From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qAzNNzWkmmDq1gAAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 17:35:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gCmHMzWkmmDoXwAA1q6Kng (envelope-from ) for ; Tue, 11 May 2021 15:35:17 +0000 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 679DE136D0 for ; Tue, 11 May 2021 17:35:17 +0200 (CEST) Received: from localhost ([::1]:59206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgUPk-0000lt-GU for larch@yhetil.org; Tue, 11 May 2021 11:35:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgUHF-0006lK-00 for emacs-orgmode@gnu.org; Tue, 11 May 2021 11:26:29 -0400 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]:36681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgUHD-0004KI-6b for emacs-orgmode@gnu.org; Tue, 11 May 2021 11:26:28 -0400 Received: by mail-il1-x133.google.com with SMTP id p15so17515193iln.3 for ; Tue, 11 May 2021 08:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GNY4iY2QPqhhMsJoQs9cMuUNI2HJWPpAl2GHmlr4y9o=; b=kO1s+lONyA4gVaVjNVtVZVPyZFP+qFGve6KhnPbeNf2A5SqBSFuO5SsELmYHmEcLdn L5EHMy5k4UmOIQmtH/0Sc4F780BRiFq1aFLaopWXPlcv25KikbmO7CVJNf6VANDzFFXW mWXntZxE1c2dl1UzN4jB7kNKfykDmsW6a7e2B97tzVxxc9mywpzvpGGCZd0r8mir1tc0 31+6AfGyzH7bnKv5Zv6zyNFGZMCXokrbQNJGqu6sQevPKMI/TCFhJAZMa7yySt0V5gU3 NNcoFB3ZFnPl7Xx2erJxIA4fNfo2oTBm6pEOiKpVEqcYgqXX4bkK71kkMxWHYIRnq+6w +ZWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GNY4iY2QPqhhMsJoQs9cMuUNI2HJWPpAl2GHmlr4y9o=; b=tzZOV5YB42E504yZqQ/rKpXCRq1m9jQbuY5Tjw8Mi7Xwa+r7qsobQ07o5NeQt/dju9 0YUhlXogkA+15SwJ7Dz+GOFQ3bKSBuug3oZTiFaX737IP/gj2t7mZZqBOnEzHn5kVO0U vgqRVaegXpw58Es1mrcGb2ttvy3V63lLDb7wdWLJLGESsvzxqrqTFLMwN36kcYQEcglG 9jJONPj8DkCUg4qH1Ntc8Q+Vg9HDb4CmBrpAfXfqM17CzNe8k7fa2iPxYn16Jgb+QU+U 3YlcSHrBhuP59IQnfbAXE8sG9mzyRiZ7M6HBxDgTs2iycuYAc75W3tQ3r6EiUgGsNSJB kLQg== X-Gm-Message-State: AOAM532+zop/pcaOUpTUMAZWI5edcLJ6ilrm5IPYxKI/ZRtt+BhryqDA fMISqLgQzc4XcQEqIepTs+6NyGKZHLSwM8CSbriLFpzpQ9IAiw== X-Google-Smtp-Source: ABdhPJyDOfXk8x32z3M9nIq7w6p8yyej8a+PaDzal47nJ4qNTMJwMJUqBGMS7sV2OutXBykaVKq1kC6cEnZFueLHJ0I= X-Received: by 2002:a92:360e:: with SMTP id d14mr26494003ila.106.1620746784899; Tue, 11 May 2021 08:26:24 -0700 (PDT) MIME-Version: 1.0 From: Phil Marneweck Date: Tue, 11 May 2021 17:26:13 +0200 Message-ID: Subject: Q: ox-md does not translate link searches to #bookmarks in markdown [9.4.4 (release_9.4.4 @ /snap/emacs/current/usr/share/emacs/27.2/lisp/org/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="00000000000062855f05c20f844c" Received-SPF: pass client-ip=2607:f8b0:4864:20::133; envelope-from=haragx@gmail.com; helo=mail-il1-x133.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620747317; 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=GNY4iY2QPqhhMsJoQs9cMuUNI2HJWPpAl2GHmlr4y9o=; b=cEg3iqNXZ/90p8f7zUttMJKENwISGSLuf8Ipvo2gTaHz3cwIk5FHfhmwUAx7ZApnolr1Vh u8KG2/gXfXmwq+lFFyVggbBr3h9nRXqH8a/a9rqHDrVDz13G0XbOwpHsjXIw9Onnj1rikU WpuXIsfFEALOv23gAcgc1VEYovmxOJRtthT6zBM58PK5Mm98mTLXA35aqOVkFno0rDj7Oq Ro8bU++8EupgiJxqmIt+91VJ+KaLcj2lyjczjI1nkZ9dr1j3mfBWIQlFrWcaFFOb33PuF6 JPk2GZNPrP4I7hHVHsYJhsj+bGTHFDz1xhRJBNndDsvCC/5zgFHtoDWy4EhDLA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620747317; a=rsa-sha256; cv=none; b=mMUjcTVevXDNvubbCcDbKzh8/LVTVrSwekslHmzS3qLETDDVaR54ApxH2UWw+PszDT2E3H icyuMGNAFm7cUbPWfzK3nd4Og2q+InLdcRyrpwA4yiyyQeewNKUl5F4vCF8Rs44EJ+JkOU jSzJrJMibK/Xhc3zuPDQpNowEzax0nzWcUZhgkYgSSY177ZweA+No2DR8+DcaDZaqi6+ky SlG6gJog5ZARINPGRPkuC4FtdSkAmxzaBSG2GSAxLM1DpQW5d0k+jetT0YVnfgZ96yq/om C/PxvA5t3zkhZHhOMvHVFbKs/Nx2ipN2vALNcUp6kSUd4AEVIW8VtvKyMceAAw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kO1s+lON; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.15 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=kO1s+lON; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 679DE136D0 X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: Rss8qZOvobcL --00000000000062855f05c20f844c Content-Type: text/plain; charset="UTF-8" Hi Is this by design? I expected to following [[file:some-file.org::#some-heading][some text]] to translate to this [some text](some-file.md#some-heading) So in org-md-link I would have thought that the default would be more like this (t (if (not desc) (format "<%s>" path) (format "[%s](%s%s)" desc path (or (org-element-property :search-option link) "")))) You would of course have to do some sanity checking on search-option to just take care of id versus headline searches etc. Regards Phil --00000000000062855f05c20f844c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

Is this by design?=C2=A0
<= br>
I expected to following

[[file:some-= file.org::#some-heading][some text]]=C2=A0

to = translate to this

[some text](some-file.md#some-he= ading)

So in org-md-link I would have thought = that the default would be more like this

(t (if (n= ot desc) (format "<%s>" path)
=C2=A0(format "[%s]= (%s%s)" desc path (or (org-element-property :search-option link) "= ;"))))

You would of course have to do som= e sanity checking on search-option to just take care of id versus headline = searches etc.

Regards
Phil
--00000000000062855f05c20f844c--