emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Phil Marneweck <haragx@gmail.com>
To: emacs-orgmode@gnu.org
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/)]
Date: Tue, 11 May 2021 17:26:13 +0200	[thread overview]
Message-ID: <CAAhEMb94YT7L=QHL+8MNCeMonznoK3ath+Y0XgpqMUXb=FbOCA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 811 bytes --]

             reply	other threads:[~2021-05-11 15:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-11 15:26 Phil Marneweck [this message]
2021-05-12  5:05 ` Tim Cross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAhEMb94YT7L=QHL+8MNCeMonznoK3ath+Y0XgpqMUXb=FbOCA@mail.gmail.com' \
    --to=haragx@gmail.com \
    --cc=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/)]' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).