From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: suppress ++ markup in orgmode? Date: Tue, 20 Nov 2018 16:05:02 -0500 Message-ID: References: <6AE2E011-4192-42FE-847A-274E6E38D3C8@ucsd.edu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000791993057b1efdc0" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41123) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPDCy-0000MF-Gf for emacs-orgmode@gnu.org; Tue, 20 Nov 2018 16:05:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPDCx-0008Gs-6v for emacs-orgmode@gnu.org; Tue, 20 Nov 2018 16:05:20 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:42160) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gPDCv-0008Cc-6v for emacs-orgmode@gnu.org; Tue, 20 Nov 2018 16:05:17 -0500 Received: by mail-wr1-x433.google.com with SMTP id q18so3434424wrx.9 for ; Tue, 20 Nov 2018 13:05:16 -0800 (PST) In-Reply-To: <6AE2E011-4192-42FE-847A-274E6E38D3C8@ucsd.edu> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Charles Berry Cc: org-mode-email --000000000000791993057b1efdc0 Content-Type: text/plain; charset="UTF-8" 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 > --000000000000791993057b1efdc0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
That doesn't seem right to me. It see= ms like a bug that it is rendered as strikethrough to me, like the regexp t= hat is generated is too greedy. That was a good hint though.

=
I was able to add=C2=A0+ to the border component of the regexp compone= nts which seems to have fixed the problem for me for now.

(setq org-emphasis-regexp-components '("- ('\"{"=C2=A0 =C2=A0;pre
=C2=A0 =C2=A0 =C2=A0 =C2=A0&qu= ot;- .,:!?;'\")}\\["= =C2=A0 ;post
=C2=A0 = =C2=A0 =C2=A0 =C2=A0"\\+
" ;border
= =C2=A0 =C2=A0 =C2=A0 =C2=A0"."=C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A01))

<= div>
John

-----------------------------------
Pro= fessor John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical E= ngineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268= -7803


On Tue, Nov 20, 2018 at 12:54 PM Berry, C= harles <ccberry@ucsd.edu> wro= te:


> On Nov 19, 2018, at 6:08 PM, John Kitchin <jkitchin@andrew.cmu.edu> wrote:=
>
> I was looking at https://github.com/joostkrem= ers/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 tex= t++}. However, in org-mode this is marked up as strikethrough. Is there a w= ay to make that not happen?
>



customize org-emphasis-alist I would think

HTH,

Chuck
--000000000000791993057b1efdc0--