emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: m27315 <m27315@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: *strong* markup not honored at boundary of macro input during HTML export
Date: Wed, 23 Dec 2020 08:58:02 -0600	[thread overview]
Message-ID: <256b09d7-6457-119c-0ef2-97ac451599c4@gmail.com> (raw)
In-Reply-To: <ad61a835-f855-269a-2087-41bf94830752@gmail.com>

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:<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



  reply	other threads:[~2020-12-23 14:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-22 17:12 m27315
2020-12-23 14:58 ` m27315 [this message]
2020-12-23 15:22   ` Juan Manuel Macías
     [not found]     ` <7e5e7cbe-31d6-2d9e-e450-9c1b54dba95e@gmail.com>
2020-12-23 16:05       ` Juan Manuel Macías

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=256b09d7-6457-119c-0ef2-97ac451599c4@gmail.com \
    --to=m27315@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: *strong* markup not honored at boundary of macro input during HTML export' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).