Re: [O] suppress ++ markup in orgmode?
Hello, Samuel Wales writes: > On 11/21/18, Nicolas Goaziou wrote: >> You can use a zero-width space, like +++. > > that trick does not work on ===. What does not work, exactly? Regards, -- Nicolas Goaziou
Re: [O] suppress ++ markup in orgmode?
On 11/21/18, Nicolas Goaziou wrote: > You can use a zero-width space, like +++. that trick does not work on ===.
Re: [O] suppress ++ markup in orgmode?
Hello, John Kitchin 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
Re: [O] suppress ++ markup in orgmode?
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 writes: > Hello, > > John Kitchin 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 +++. > > 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
Re: [O] suppress ++ markup in orgmode?
Hello, John Kitchin 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 +++. Regards, -- Nicolas Goaziou
Re: [O] suppress ++ markup in orgmode?
Hello, John Kitchin 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 +++. Regards, -- Nicolas Goaziou
Re: [O] suppress ++ markup in orgmode?
Hello, John Kitchin 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 +++. Regards, -- Nicolas Goaziou
Re: [O] suppress ++ markup in orgmode?
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 wrote: > > > > On Nov 19, 2018, at 6:08 PM, John Kitchin > 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 >
Re: [O] suppress ++ markup in orgmode?
> On Nov 19, 2018, at 6:08 PM, John Kitchin 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
[O] suppress ++ markup in orgmode?
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