[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Bug? Highlighting inconsistent with export
From: |
Clément Pit--Claudel |
Subject: |
[O] Bug? Highlighting inconsistent with export |
Date: |
Mon, 29 Aug 2016 13:52:08 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
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.
signature.asc
Description: OpenPGP digital signature
- [O] Bug? Highlighting inconsistent with export,
Clément Pit--Claudel <=