I'm trying to highlight text for HTML output, so I defined a span.highlight
class in my .css file.  But I can't reliably use this class because the <class
name="highlight"> directive is sometimes rendered as &lt;class
name=&quot;highlight&quot;&gt;.

I get the correct output if the class tags are on separate lines from my text,
like this:

<class name="highlight">
my text
</class>

which generates

<p><span class="highlight">
my text
</span></p>

But I get incorrect output in lists:

 - <class name="highlight">my item</class>

which generates

<ul>
<li>&lt;class name=&quot;highlight&quot;&gt;my item&lt;/class&gt;</li>
</ul>

Even outside of lists, putting class tags inline sometimes works and sometimes
doesn't (there seems to be a history dependence).  Sometimes only the opening
tag is correctly transformed.

For now, I'm using a cumbersome work-around with <literal> blocks.

By the way, highlighting is something I need to do a lot: is there a way to
define this with a new regexp, like ****highlighted****?  Or can I overwrite the
default behavior or ***bold-italic***?

-- Jim




_______________________________________________
Muse-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/muse-el-discuss

Reply via email to