From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +C87OFAp4l8NNwAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 17:13:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kCAMNFAp4l/ZQAAA1q6Kng (envelope-from ) for ; Tue, 22 Dec 2020 17:13:52 +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 5A425940105 for ; Tue, 22 Dec 2020 17:13:52 +0000 (UTC) Received: from localhost ([::1]:34276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krlEM-0001bn-LI for larch@yhetil.org; Tue, 22 Dec 2020 12:13:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krlDG-0001Zd-9t for emacs-orgmode@gnu.org; Tue, 22 Dec 2020 12:12:48 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:38866) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krlDE-0006k8-Tt for emacs-orgmode@gnu.org; Tue, 22 Dec 2020 12:12:42 -0500 Received: by mail-qt1-x830.google.com with SMTP id y15so9410779qtv.5 for ; Tue, 22 Dec 2020 09:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=gJytYSxksqJb76DcpHkuit7RVsPA4i1PN7xskJ7YHgo=; b=RgMr3mx3q/mrjlrNYuoTmKLnIEO4Q8F8HqzYrbXXSqS4DFE/1edPcvoQXPgs2gpXr/ xbN4AFyFOnRvLFp5zp31zJw3pXuMgztiyoBiUVyADodjropTwZloO3LR5NYnUl6b0Hvl exFpIJj1WWYDzxKWhoKB3iFcMEgp3yiEYFf1f/zsOojiZ9vvrg7IVxy6cJvmx1okD+RE iUS17sp1JB1fTXQBvyXuuKvjyeOMLVTjRq6ei00+2tEVE3bhwAY/8BngTxSUHt8t6qh9 O8YmSyywaY4OvXyPihEpQMZnlOKlf0M1zIGW9190SEH1IIFS2AvjZjnjZNbsPR/HOHja WkHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=gJytYSxksqJb76DcpHkuit7RVsPA4i1PN7xskJ7YHgo=; b=S0N4J8VtrIbsg+5VtPHeGR05SJOvnXhrkEVlCOqJjaC1qOMr0x11u1wgQzofobBI/S Rgiev1ZQ68hlPIBA+QWLtOjWujX3IfMwNKI0DrYZ+HgtkxxOgx8JxWyP9L1pg+w5jhoX yYIqmFfsESZGf79HJlbkO7ZNy7pkwwRCW1gc9jIN1FrdSmgT35NgSzPZnALDl4M4BVcf TibkcmdjGgd5bZ5ej1a39Zc//fWjtLye8EYRl5zPNWJXlUyh+nwH2MV4YZtkUnh/rVvZ ltrf6Xw/I4G1N2WC1TGVdNjP4wlF/ZAxE/BrRx611/VVDb8VVJLrAxwUZDwd8yeZZSXR x7zA== X-Gm-Message-State: AOAM530XN4dGgXpz13zxs5BX9ItG29NEzJmMELpyI0/Tyc6kLVV/Gu/C aCm8R+xoS01CcP0+76MYR9GvmD7zL8A= X-Google-Smtp-Source: ABdhPJytrhZMUFMWTjkNnaaZCFVN5lXYIhyOUzdlSWNKIeDesoS4nMVc/MQYbW6f0c40oX0aAwXzdA== X-Received: by 2002:ac8:6659:: with SMTP id j25mr22321376qtp.322.1608657158850; Tue, 22 Dec 2020 09:12:38 -0800 (PST) Received: from [192.168.0.115] (104-182-91-49.lightspeed.brhmal.sbcglobal.net. [104.182.91.49]) by smtp.googlemail.com with ESMTPSA id s68sm13431122qkc.43.2020.12.22.09.12.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Dec 2020 09:12:38 -0800 (PST) From: m27315 Subject: *strong* markup not honored at boundary of macro input during HTML export To: emacs-orgmode@gnu.org Message-ID: Date: Tue, 22 Dec 2020 11:12:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=m27315@gmail.com; helo=mail-qt1-x830.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.72 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=RgMr3mx3; dmarc=pass (policy=none) header.from=gmail.com; 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: 5A425940105 X-Spam-Score: -2.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1dQdpSxpCXRY

If the following org file is exported as HTML, any *strong* markup for words at the beginning or the end of the input string are ignored.  (I have 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:<span class="quote">&ldquo;@@$1@@html:&rdquo;</span>@@

* 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 replied.

* Test macro with trailing *strongly* marked text:
Retorted Yoda, {{{quote(Critical if not uncertain\, all *my quotes are*)}}}.

{{{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 whined.

The condensed filtered HTML output is:

...
<h2 id="org40a1103">Test macro with non-marked text:</h2>
<p>Demonstrating that, <span class="quote">&ldquo;This is a vanilla quote without markup&rdquo;</span>, Abraham Lincoln.</p>
<p><span class="quote">&ldquo;This is a similar control quote without markup&rdquo;</span>, George Washington said.</p>

<h2 id="org962a914">Test macro with leading <b>strongly</b> marked text:</h2>
<p>Wilson quipped, <span class="quote">&ldquo;*Not all* quotes are important!&rdquo;</span>.</p>
<p><span class="quote">&ldquo;*But this* is a very important quote&rdquo;</span>, Thomas Jefferson replied.</p>

<h2 id="org47bf84f">Test macro with trailing <b>strongly</b> marked text:</h2>
<p>Retorted Yoda, <span class="quote">&ldquo;Critical if not uncertain, all *my quotes are*&rdquo;</span>.</p>
<p><span class="quote">&ldquo;I am certain they are *all uncertain*&rdquo;</span>, Anakin sneered.</p>

<h2 id="org08c1694">Test macro with leading, middle, and trailing marked text:</h2>
<p>Darth Vader threatened, <span class="quote">&ldquo;*All* of <b>my quotes</b> are *heeded carefully!*&rdquo;</span>.</p>
<p><span class="quote">&ldquo;*Nobody* listens to <b>meesa</b> quotes. *Why?*&rdquo;</span>, Jar-Jar whined.</p>
...

Notice how the *strong* marks are only transformed into <b></b> tags inside a string, not at the boundaries.

Can anybody confirm or explain what I am doing wrong?

Thanks!

Trevor