emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8


From: Gomez, Daniel
Subject: Re: [BUG] Ignoring link syntax inside of src blocks [9.5.4 (9.5.4-ged6f8d)]
Date: Mon, 13 Jun 2022 21:16:00 +0000

Hi all,

The link syntax [[link]] is parsed as an org-link inside of a source block, as shown in the code below:

#+begin_src emacs-lisp
[[2]]
#+end_src

This if fine in the example above, but consider a language like python. The link syntax is also valid python syntax:

#+begin_src python
x = np.array([[2]])
#+end_src

If I now toggle link display with org-toggle-link-display, then my python code is still valid, but reads as if it'd be wrong (as illustrated here):

#+begin_src python
x = np.array(2)  # the [[]] appear hidden.
#+end_src

How could I tell org-mode to not parse links inside of org src-blocks?

Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.70 Version 10.15.7 (Build 19H1922))
 of 2022-06-10
Package: Org mode version 9.5.4 (9.5.4-ged6f8d)


Regards,

Daniel

The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline .


Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail. 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]