emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Tor Kringeland <tor.kringeland@ntnu.no>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] formatting at edges of link
Date: Mon, 04 Jul 2022 09:08:16 +0800	[thread overview]
Message-ID: <87r131fzwf.fsf@localhost> (raw)
In-Reply-To: <m2mtdp4sli.fsf@ntnu.no>

Tor Kringeland <tor.kringeland@ntnu.no> writes:

> For example
>
>   [[normal /italic/ normal]]
>
> formats correctly as a link, but
>
>   [[/italic/]]
>
> doesn't format to italic.  A workaround is to write
>
>   /[[italic]]/
>
> but sometimes the formatting is part of my link names, so it's a bit
> annoying to reformat to get correct formatting.

All the examples above are not valid links.
Note that Org link consist of link itself and a description:
[[link][description]].

Formatting links is meaningless. The fact that they are sometimes
formatted is simply a limitation of our current fontification engine (it
will be changed in future).

Descriptions will be correctly formatted.

[[https://orgmode.org][/italic/]] should work just fine.

Best,
Ihor


  reply	other threads:[~2022-07-04  1:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-04  0:41 [BUG] formatting at edges of link Tor Kringeland
2022-07-04  1:08 ` Ihor Radchenko [this message]
2022-07-04 13:58   ` Tor Kringeland
2022-07-07  9:36     ` Ihor Radchenko

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=87r131fzwf.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tor.kringeland@ntnu.no \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).