From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ECdYGxlh41+NCwAA0tVLHw (envelope-from ) for ; Wed, 23 Dec 2020 15:24:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QJJIFxlh41+GBwAAbx9fmQ (envelope-from ) for ; Wed, 23 Dec 2020 15:24:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A573D94014B for ; Wed, 23 Dec 2020 15:24:08 +0000 (UTC) Received: from localhost ([::1]:54168 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ks5zj-0007hV-KN for larch@yhetil.org; Wed, 23 Dec 2020 10:24:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks5ya-0007F5-Qu for emacs-orgmode@gnu.org; Wed, 23 Dec 2020 10:22:56 -0500 Received: from mout02.posteo.de ([185.67.36.66]:45075) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks5yY-0007G7-44 for emacs-orgmode@gnu.org; Wed, 23 Dec 2020 10:22:56 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B4E11240100 for ; Wed, 23 Dec 2020 16:22:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608736969; bh=KQ1rEgK8hViBVitopPAqCL4a/creJ64DlsOJc0wFHmo=; h=From:To:Cc:Subject:Date:From; b=nnSUZNNtANBJ0gJl+0d4D1q+iVltZNrnq7i2zygvRCyLfutRIrcqCaU1jmUIh+JhU nFzm6LQz0AlAXRplGrVtXul1V8D0l4110iah40XNIc5rFbJaTP5RQHQhkYeOIwPPM0 eV/z0rsftYysvSeFgKBnkxU1YoxJOCfzvEJn1cPm6bzlfOT8X+Dp69Lermd1nV6oW7 CN4I3Ib/GgEeojFp7MYtwYhkHjwi/YW+ty4uXBLQojJLVBq1I8IKn7mWmfdd4MTpmB CJ0mzZFRWOSt1QxaWmV4XTyglW736gvzp+HfH3m19S3J12onD7egkg5iHgP+oayeEb jOFYatYL0tYgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4D1H5N75QQz6tm6; Wed, 23 Dec 2020 16:22:48 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: m27315 Subject: Re: *strong* markup not honored at boundary of macro input during HTML export References: <256b09d7-6457-119c-0ef2-97ac451599c4@gmail.com> Date: Wed, 23 Dec 2020 16:22:47 +0100 In-Reply-To: <256b09d7-6457-119c-0ef2-97ac451599c4@gmail.com> (m27315@gmail.com's message of "Wed, 23 Dec 2020 08:58:02 -0600") Message-ID: <87o8iky2bc.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=nnSUZNNt; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: A573D94014B X-Spam-Score: -3.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: 0xF5Af4hDhhw Hello, a possible dirty solution could be defining the macro with two Unicode zero-width spaces (u+200b): #+MACRO: quote (eval (concat "@@html:“@@" "\u= 200B" $1 "\u200B" "@@html:”@@")) Regards, Juan Manuel=20 m27315 writes: > Resending as plain-text ... If somebody could point me in the direction o= f=20 > the code that might be responsible for this, I'll try to take a look. > > .... > > If the following org file is exported as HTML, any *strong* markup for wo= rds=20 > at the beginning or the end of the input string are ignored.=C2=A0 (I hav= e=20 > included several slight variations to help testing.) > > #+TITLE: Test MACRO with *strong* Markup Input > #+OPTIONS: date:nil timestamp:nil num:nil stat:t title:t toc:nil > > #+MACRO: quote @@html:“@@$1@@html:”= @@ > > * Test macro with non-marked text: > Demonstrating that, {{{quote(This is a vanilla quote without markup)}= }}, > Abraham Lincoln. > > {{{quote(This is a similar control quote without markup)}}}, George > Washington said. > > * Test macro with leading *strongly* marked text: > Wilson quipped, {{{quote(*Not all* quotes are important!)}}}. > > {{{quote(*But this* is a very important quote)}}}, Thomas Jefferson r= eplied. > > * Test macro with trailing *strongly* marked text: > Retorted Yoda, {{{quote(Critical if not uncertain\, all *my quotes ar= e*)}}}. > > {{{quote(I am certain they are *all uncertain*)}}}, Anakin sneered. > > * Test macro with leading, middle, and trailing marked text: > Darth Vader threatened, {{{quote(*All* of *my quotes* are *heeded > carefully!*)}}}. > > {{{quote(*Nobody* listens to *meesa* quotes. *Why?*)}}}, Jar-Jar whin= ed. > > The condensed filtered HTML output is: > > ... >

Test macro with non-marked text:

>

Demonstrating that, “This is a vanilla > quote without markup”, Abraham Lincoln.

>

“This is a similar control quote witho= ut > markup”, George Washington said.

> >

Test macro with leading strongly marked > text:

>

Wilson quipped, “*Not all* quotes are > important!”.

>

“*But this* is a very important > quote”, Thomas Jefferson replied.

> >

Test macro with trailing strongly marked > text:

>

Retorted Yoda, “Critical if not uncert= ain, > all *my quotes are*”.

>

“I am certain they are *all > uncertain*”, Anakin sneered.

> >

Test macro with leading, middle, and trailing m= arked > text:

>

Darth Vader threatened, “*All* of my > quotes are *heeded carefully!*”.

>

“*Nobody* listens to meesa quot= es. > *Why?*”, Jar-Jar whined.

> ... > > Notice how the *strong* marks are only transformed into tags insi= de=20 > a string, not at the boundaries. > > Can anybody confirm or explain what I am doing wrong? > > Thanks! > > Trevor > >