* suppress ++ markup in orgmode?
@ 2018-11-20 2:08 John Kitchin
2018-11-20 17:51 ` Berry, Charles
0 siblings, 1 reply; 10+ messages in thread
From: John Kitchin @ 2018-11-20 2:08 UTC (permalink / raw)
To: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 541 bytes --]
I was looking at https://github.com/joostkremers/criticmarkup-emacs again
recently and ran into something I don't recall happening before.
There is a markup for inserting text thatlooks like {++Insert this text++}.
However, in org-mode this is marked up as strikethrough. Is there a way to
make that not happen?
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
[-- Attachment #2: Type: text/html, Size: 1179 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-11-20 2:08 suppress ++ markup in orgmode? John Kitchin
@ 2018-11-20 17:51 ` Berry, Charles
2018-11-20 21:05 ` John Kitchin
0 siblings, 1 reply; 10+ messages in thread
From: Berry, Charles @ 2018-11-20 17:51 UTC (permalink / raw)
To: John Kitchin; +Cc: org-mode-email
> On Nov 19, 2018, at 6:08 PM, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
>
> I was looking at https://github.com/joostkremers/criticmarkup-emacs again recently and ran into something I don't recall happening before.
>
> There is a markup for inserting text thatlooks like {++Insert this text++}. However, in org-mode this is marked up as strikethrough. Is there a way to make that not happen?
>
customize org-emphasis-alist I would think
HTH,
Chuck
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-11-20 17:51 ` Berry, Charles
@ 2018-11-20 21:05 ` John Kitchin
2018-11-21 20:28 ` Nicolas Goaziou
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: John Kitchin @ 2018-11-20 21:05 UTC (permalink / raw)
To: Charles Berry; +Cc: org-mode-email
[-- Attachment #1: Type: text/plain, Size: 1232 bytes --]
That doesn't seem right to me. It seems like a bug that it is rendered as
strikethrough to me, like the regexp that is generated is too greedy. That
was a good hint though.
I was able to add + to the border component of the regexp components which
seems to have fixed the problem for me for now.
(setq org-emphasis-regexp-components '("- ('\"{" ;pre
"- .,:!?;'\")}\\[" ;post
"\\+
" ;border
"."
1))
John
-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
On Tue, Nov 20, 2018 at 12:54 PM Berry, Charles <ccberry@ucsd.edu> wrote:
>
>
> > On Nov 19, 2018, at 6:08 PM, John Kitchin <jkitchin@andrew.cmu.edu>
> wrote:
> >
> > I was looking at https://github.com/joostkremers/criticmarkup-emacs
> again recently and ran into something I don't recall happening before.
> >
> > There is a markup for inserting text thatlooks like {++Insert this
> text++}. However, in org-mode this is marked up as strikethrough. Is there
> a way to make that not happen?
> >
>
>
>
> customize org-emphasis-alist I would think
>
> HTH,
>
> Chuck
>
[-- Attachment #2: Type: text/html, Size: 2460 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-11-20 21:05 ` John Kitchin
@ 2018-11-21 20:28 ` Nicolas Goaziou
2018-11-21 20:28 ` Nicolas Goaziou
2018-11-21 20:32 ` Nicolas Goaziou
2 siblings, 0 replies; 10+ messages in thread
From: Nicolas Goaziou @ 2018-11-21 20:28 UTC (permalink / raw)
To: John Kitchin; +Cc: org-mode-email, Charles Berry
Hello,
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> That doesn't seem right to me. It seems like a bug that it is rendered as
> strikethrough to me, like the regexp that is generated is too greedy. That
> was a good hint though.
IMO, +++ is clearly a plus sign with strike-through. Why would "+" sign
be excluded from strike-through?
You can use a zero-width space, like +<ZWS>++.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-11-20 21:05 ` John Kitchin
2018-11-21 20:28 ` Nicolas Goaziou
@ 2018-11-21 20:28 ` Nicolas Goaziou
2018-12-02 2:56 ` Samuel Wales
2018-11-21 20:32 ` Nicolas Goaziou
2 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2018-11-21 20:28 UTC (permalink / raw)
To: John Kitchin; +Cc: org-mode-email, Charles Berry
Hello,
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> That doesn't seem right to me. It seems like a bug that it is rendered as
> strikethrough to me, like the regexp that is generated is too greedy. That
> was a good hint though.
IMO, +++ is clearly a plus sign with strike-through. Why would "+" sign
be excluded from strike-through?
You can use a zero-width space, like +<ZWS>++.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-11-20 21:05 ` John Kitchin
2018-11-21 20:28 ` Nicolas Goaziou
2018-11-21 20:28 ` Nicolas Goaziou
@ 2018-11-21 20:32 ` Nicolas Goaziou
2018-11-25 23:45 ` John Kitchin
2 siblings, 1 reply; 10+ messages in thread
From: Nicolas Goaziou @ 2018-11-21 20:32 UTC (permalink / raw)
To: John Kitchin; +Cc: org-mode-email, Charles Berry
Hello,
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> That doesn't seem right to me. It seems like a bug that it is rendered as
> strikethrough to me, like the regexp that is generated is too greedy. That
> was a good hint though.
IMO, +++ is clearly a plus sign with strike-through. Why would "+" sign
be excluded from strike-through?
You can use a zero-width space, like +<ZWS>++.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-11-21 20:32 ` Nicolas Goaziou
@ 2018-11-25 23:45 ` John Kitchin
2018-11-26 20:21 ` Nicolas Goaziou
0 siblings, 1 reply; 10+ messages in thread
From: John Kitchin @ 2018-11-25 23:45 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: org-mode-email, Charles Berry
hm. I would have interpreted it as an empty string with a strikethrough,
followed by a plus. It makes sense to require 1 or more characters
between them though.
Why is +-+ not a - with a strikethrough? Because it is a table line? Or
+ + is not a space with a strikethrough. I guess there are word
boundaries required.
I thought it was interesting that ++ + and + ++ show no strikethrough, but
++ ++ does. Evidently a strikethrough on + +. An editor, on the other
hand, might want to strikeout excess spaces.
It isn't a big deal, I just changed the editmark syntax to avoid
clashing with org-syntax.
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> John Kitchin <jkitchin@andrew.cmu.edu> writes:
>
>> That doesn't seem right to me. It seems like a bug that it is rendered as
>> strikethrough to me, like the regexp that is generated is too greedy. That
>> was a good hint though.
>
> IMO, +++ is clearly a plus sign with strike-through. Why would "+" sign
> be excluded from strike-through?
>
> You can use a zero-width space, like +<ZWS>++.
>
> Regards,
--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-11-25 23:45 ` John Kitchin
@ 2018-11-26 20:21 ` Nicolas Goaziou
0 siblings, 0 replies; 10+ messages in thread
From: Nicolas Goaziou @ 2018-11-26 20:21 UTC (permalink / raw)
To: John Kitchin; +Cc: org-mode-email, Charles Berry
Hello,
John Kitchin <jkitchin@andrew.cmu.edu> writes:
> hm. I would have interpreted it as an empty string with a strikethrough,
> followed by a plus. It makes sense to require 1 or more characters
> between them though.
>
> Why is +-+ not a - with a strikethrough? Because it is a table line?
It was a bug I was not very motivated to fix. It should now be fixed on
the export side, at least. I.e., "+-+" is exported as a strike-through.
> Or + + is not a space with a strikethrough. I guess there are word
> boundaries required.
Striking through nothing doesn't make sense, does it? In any case,
blanks are forbidden in the inner part of the markers.
> I thought it was interesting that ++ + and + ++ show no strikethrough, but
> ++ ++ does. Evidently a strikethrough on + +. An editor, on the other
> hand, might want to strikeout excess spaces.
We have to strike a balance here. Allowing emphasis markup around spaces
has more cons than pros, IMO.
> It isn't a big deal, I just changed the editmark syntax to avoid
> clashing with org-syntax.
The real issue here is that you're trying to bend Org syntax to fit
a foreign syntax. It may imply pain.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-11-21 20:28 ` Nicolas Goaziou
@ 2018-12-02 2:56 ` Samuel Wales
2018-12-02 8:06 ` Nicolas Goaziou
0 siblings, 1 reply; 10+ messages in thread
From: Samuel Wales @ 2018-12-02 2:56 UTC (permalink / raw)
To: John Kitchin, Charles Berry, org-mode-email
On 11/21/18, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
> You can use a zero-width space, like +<ZWS>++.
that trick does not work on ===.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: suppress ++ markup in orgmode?
2018-12-02 2:56 ` Samuel Wales
@ 2018-12-02 8:06 ` Nicolas Goaziou
0 siblings, 0 replies; 10+ messages in thread
From: Nicolas Goaziou @ 2018-12-02 8:06 UTC (permalink / raw)
To: Samuel Wales; +Cc: org-mode-email, Charles Berry, John Kitchin
Hello,
Samuel Wales <samologist@gmail.com> writes:
> On 11/21/18, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
>> You can use a zero-width space, like +<ZWS>++.
>
> that trick does not work on ===.
What does not work, exactly?
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2018-12-02 8:06 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-20 2:08 suppress ++ markup in orgmode? John Kitchin
2018-11-20 17:51 ` Berry, Charles
2018-11-20 21:05 ` John Kitchin
2018-11-21 20:28 ` Nicolas Goaziou
2018-11-21 20:28 ` Nicolas Goaziou
2018-12-02 2:56 ` Samuel Wales
2018-12-02 8:06 ` Nicolas Goaziou
2018-11-21 20:32 ` Nicolas Goaziou
2018-11-25 23:45 ` John Kitchin
2018-11-26 20:21 ` Nicolas Goaziou
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).