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 UBUEGTVb41/VewAA0tVLHw (envelope-from ) for ; Wed, 23 Dec 2020 14:59:01 +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 QD7lFDVb41/6YQAA1q6Kng (envelope-from ) for ; Wed, 23 Dec 2020 14:59:01 +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 AA6DE940430 for ; Wed, 23 Dec 2020 14:59:00 +0000 (UTC) Received: from localhost ([::1]:37662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ks5bO-0007RA-E8 for larch@yhetil.org; Wed, 23 Dec 2020 09:58:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks5aZ-0007Qq-60 for emacs-orgmode@gnu.org; Wed, 23 Dec 2020 09:58:07 -0500 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:40684) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ks5aX-0006Th-IY for emacs-orgmode@gnu.org; Wed, 23 Dec 2020 09:58:06 -0500 Received: by mail-qk1-x72d.google.com with SMTP id z11so15093420qkj.7 for ; Wed, 23 Dec 2020 06:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=V0jMLiddycBwoG0Lj/UUj9iqj8Lpvm06n6X6y+FcFY4=; b=r1V99e7x86qvx71D5euXWoQPEPLa9ehmloguKmJfLlbxr9oH7xJ5zC4nCnirGxFmXl lVxjZaDWJADcMWpcu/+h7L8k7gz6wpCXlXgv2D2E37V97d5TUepK3yvy62wJPHpvBD0V DnqYSAT9iJJYi/mG21XSs+iTIANV+VYxyO5Wd9FdJ4g4PvUW4vguyalIh67nwTTdoNFW VtTrYO/nzo1HDIMnMfkjbEiLY4xJZ/16K4OFJd6vV/mTT5lBZERj/rDFamtZIwm5tjSH uWr3Mh8OVplL11qCVo0NE2eIOBABKGXb2hnlbEtg865r8OEgOR1K+jGH91Gmj88leMl1 hFog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=V0jMLiddycBwoG0Lj/UUj9iqj8Lpvm06n6X6y+FcFY4=; b=VWzEEJNGFwxd1QThfqp3ndRKyrx3dqYh6FqIQ9sl+tnYx9VYtDS1vj1ZGyxUkLf3P8 eXdd7elE/4ouCILmwmTMxESOLM4WqytMrTLvWHVfVE/9BIMnpWS6N1/OqXLVrlOeQ/ZH BZ/g1aGmnD6ltPLL5DXt3+mThVUCbZKlD+BaI13k4DBbB4Lszr4Y87S6PsZTcNmCy9P0 o649zJ24iol7sbzpKv3ARzEkWZ7DpRpqzUEi6zUxCZU+e0rsNwk2wht+7hGlmB5AjfF7 uaYJhF04CXqVnvy9/jAMhO00ZlsVGDuTR/D5qFWDkr7oKH2jKcu58fnLT2Amckqt4eHo 5Ygg== X-Gm-Message-State: AOAM531ifupipdyFtpzNAIvTikZTt0TchclkF8P/+9VQ0VVkTGc8zsGW NT2NceOS2a6JDj1xXPbZGbrTsChgl+U= X-Google-Smtp-Source: ABdhPJz2k+HBsZ9PW5DhHfauisyn+xBNEBWSmhMgkV48QjI5qd3e/d2jbAJV9XosYwELgP3rSxIoZw== X-Received: by 2002:a37:9a97:: with SMTP id c145mr26878586qke.350.1608735484264; Wed, 23 Dec 2020 06:58:04 -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 a22sm14871171qkl.121.2020.12.23.06.58.03 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Dec 2020 06:58:03 -0800 (PST) Subject: Re: *strong* markup not honored at boundary of macro input during HTML export From: m27315 To: emacs-orgmode@gnu.org References: Message-ID: <256b09d7-6457-119c-0ef2-97ac451599c4@gmail.com> Date: Wed, 23 Dec 2020 08:58:02 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::72d; envelope-from=m27315@gmail.com; helo=mail-qk1-x72d.google.com 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-2.521, RCVD_IN_DNSWL_NONE=-0.0001, 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: , 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=gmail.com header.s=20161025 header.b=r1V99e7x; 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: AA6DE940430 X-Spam-Score: -3.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: Eu0e2XFSaV+m Resending as plain-text ... If somebody could point me in the direction of 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 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:“@@$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 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: ...

Test macro with non-marked text:

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

“This is a similar control quote without 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 uncertain, all *my quotes are*”.

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

Test macro with leading, middle, and trailing marked text:

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

“*Nobody* listens to meesa quotes. *Why?*”, Jar-Jar whined.

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