all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug? Highlighting inconsistent with export
@ 2016-08-29 17:52 Clément Pit--Claudel
  2016-08-30 10:08 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Clément Pit--Claudel @ 2016-08-29 17:52 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1077 bytes --]

Hi all,

In the following snippets, I have marked which bits are syntax-highlighted as code, and which bits are exported as code.

                 Some “=code=” [fn:: ~more~ ~of it~]. ~even more code~— ~this~ —.
   Highlighted?        No            Yes    No       No                No
   Exported?           No            Yes    Yes      No                No

Note the inconsistency in the footnote case.  ~this~ isn't highlighted because it's surrounded by non-breaking space.  ~of it~ isn't highlighted because of the ‘]’, but on export it does get rendered as code.

Some suggestions: Paired delimiters and quotes, such as “” ‘’ <> [], could be allowed around code (by changing the default for ‘org-emphasis-regexp-components’).  Spaces (including zero-width spaces) could also be allowed: this would provide a universal mechanism for ensuring that a bit of code is highlighted. For example, “There are many ~let~s in this code” wouldn't work, but “There are many ~let~​s in this code” would work fine.

Cheers,
Clément.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-30 16:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-29 17:52 Bug? Highlighting inconsistent with export Clément Pit--Claudel
2016-08-30 10:08 ` Nicolas Goaziou
2016-08-30 16:36   ` Clément Pit--Claudel

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.