From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cD42KvFjm2CrrgAAgWs5BA (envelope-from ) for ; Wed, 12 May 2021 07:13:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +BDHJfFjm2CeGwAAbx9fmQ (envelope-from ) for ; Wed, 12 May 2021 05:13:21 +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 0883426E2C for ; Wed, 12 May 2021 07:13:20 +0200 (CEST) Received: from localhost ([::1]:35076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lghBG-0006mX-RO for larch@yhetil.org; Wed, 12 May 2021 01:13:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lghAP-0006hs-69 for emacs-orgmode@gnu.org; Wed, 12 May 2021 01:12:17 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:44870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lghAJ-0007kJ-Tm for emacs-orgmode@gnu.org; Wed, 12 May 2021 01:12:16 -0400 Received: by mail-pg1-x532.google.com with SMTP id y32so17336109pga.11 for ; Tue, 11 May 2021 22:12:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=DRGdSD1uDysVpNnfGKQFgIHIeo2pq3E6mRFyIHBmn2c=; b=pvA+aK5NdrlGjIEFImP4J4AZVj/4LHTp69SfCMtD/Qs/40rmHYwIIwVE5Ppemd+CqJ MLG4VemjY6pZJEy68Y4JI3QPnL0QnaXmXL8UeXuFaNFlrceA/9vi5kdeM4tRsQrEoX+y fpxbD0B+Q3TL11jKHzdLV+IS4AUUtUBaNDBfW1ETcAzDdME4EJC0NohT6NAcycdcXdcW ohUBxeO6iZ1MBxt1jx55yFOSE+ToGgi2dSK38KCTMPkmQyJPCx1bZXDnJNti29mOWJZ2 LlFLOpNkLXpHjxBn5amF+Ha+NwJDRaPC9DjUWadGzBo/8iZSLTe29O8TGiAdxH0cBR+1 Ukmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=DRGdSD1uDysVpNnfGKQFgIHIeo2pq3E6mRFyIHBmn2c=; b=FP63e9zU82uwmi9nanbXOJPUT1j0m2yzdXDAAhUFexWbS9PcD6DQ+ANpB164p/qYdR CJL+UWbOzISiycKoIoiRSoJdy1HbOKParRDr5lHpvD9WtaIMl95coNIn36quhCCcC7WH TMwqMR2CkgWeeMqss5nOwES1/IU8ASKR4yECAwHAAMtSbDTuVW0TODUydglA02kwYbTr k3unUPASdnt7Fn8KtbWl7LhOauAVKg/Kzlcqw5JerfsnT1d/vtrI9bKBfvLpSvHgYYlf p603VZD0xxPliWeiU5NQ+eNyC4bxFNUH4X7yUq1xRJS0xkZhoX7h0L1TznOahV8zAYUJ Vxmg== X-Gm-Message-State: AOAM532Ou9GPodYQXNFoxVADGvhXosvBeWMeSDl6+3rM8YuSC4c1PJNJ AmY64HswDZC5Bbt055YOX3PFEo9/qr8= X-Google-Smtp-Source: ABdhPJzFOnYWz7Yf8SUwqtsVcjASBkDljqWWwHSJXy70F70q8Dx99gHsUwcyVgRw1788qSZFnRY80Q== X-Received: by 2002:a63:1165:: with SMTP id 37mr35158064pgr.295.1620796329219; Tue, 11 May 2021 22:12:09 -0700 (PDT) Received: from tim-desktop (220-235-7-86.dyn.iinet.net.au. [220.235.7.86]) by smtp.gmail.com with ESMTPSA id a20sm14768318pfn.23.2021.05.11.22.12.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 22:12:08 -0700 (PDT) References: User-agent: mu4e 1.5.13; emacs 28.0.50 From: Tim Cross To: emacs-orgmode@gnu.org Subject: Re: 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/)] Date: Wed, 12 May 2021 15:05:20 +1000 In-reply-to: Message-ID: <87cztwbknu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=theophilusx@gmail.com; helo=mail-pg1-x532.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 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=1620796401; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DRGdSD1uDysVpNnfGKQFgIHIeo2pq3E6mRFyIHBmn2c=; b=ksAXE5+16SR7ORknz6otoWEMNGQOIEKQapRTJ8pphecHC1RzmSuE3qM08GagnnKqfEXg24 rFaNirfry8quRD/WplogAbKT3H/vXNIHvlRM3ClVoCx8ri6gdlYUGyVK4/5GDF0QEvSkyJ E+nuUFJWs7r/4NLfot0l72CSfRXbcwmJ4JjO29TiBMLGAJzcA5dCuJJydNHR8rTMwzaJLa W4/1ox68fWQMKyIUCmaMfwSng5cxtzedD18DqBWXzjXub/Cdtk56lLqA6TG9xtwqtVS5Vu RPaIkGbpms3H2xzqq7YtOB3EB7i+iWu9lebP0gUlOWsTEJDBnl0o2FbD+BYy3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620796401; a=rsa-sha256; cv=none; b=TMdW7aPHmG6swC8NmR20S9jU2qU/+nccI3g47y54XFnlO1mn44ugIwL+wnLwKslkTm2x08 OEtQFkenWdahZdy9QsWoegWvjHaTXWvfLDqsQTuMYLWazMYowuakAqwKfEmqe2WNwxdyFa U3t5WCqSVdipmRogYYVKOuvDOzrjfw8DNGsx1V4q13xrj0+aM1w3cPgmT3kvj/tG8m1HzW +nD3lYpeuUFizr5mLNFeEYznJc598oA2O7WngckQ2dSAPKQHhXaYXsxwTfo4Fpp6pcpGWW 2GZhyVbDZclNNURNYPFUey/5HAcmUCW5qOk4SFINofoHRCe7yxLUklkusGeLXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=pvA+aK5N; 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=pvA+aK5N; 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: 0883426E2C X-Spam-Score: -3.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6+tc/aWmnZzm Phil Marneweck writes: > 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. > I'm not sure if this is by design or because of limitations in the markdown dialect used by org mode (see http://daringfireball.net/projects/markdown) or just a bug. My suspicion, after a quick review of the markdown syntax on the daringfireball site is that search links are not supported. This is one of those examples of the problems arising from a format type which does not have a specification. There are numerous different markdown dialects and org had to select one. Problem is, everyone gets use to a particular dialect and then is often disappointed when org's dialect does not match their expectations. One reason we also have the github flavoured markdown exporter. -- Tim Cross