Bug: Allow CSS classes in verbatim tags
Originally asked in Support.DisableRenderingInBlocks
I would like to have the option to have a
CSS class assigned to a
verbatim or
pre tag, like:
<pre class="myclass">
my text
</pre>
Currently the
class="myclass" is being parsed out.
In
Render.pm::putBackBlocks is documented that this should be possible:
Parameters to the outermost cut block are replaced into the open tag,
even if that tag is changed. This allows things like
<verbatim class="">
to be mapped to
<pre class="">
Perhaps the code does not work as advertised?
Test case
Environment
--
ArthurClemens - 20 Apr 2005
Impact and Available Solutions
Follow up
There is definitely a problem here. Looking into it.
--
CrawfordCurrie - 20 Apr 2005
Fix record
OK, fixed, along with a mountain of other stuff that it revealed.
There are still some instances in the code where the topic is parsed in a "non-standard" way. They should be tidied up over time, as we get testcases in place to make sure nothing breaks.
--
CrawfordCurrie - 20 Apr 2005
Discussion
What a speed! Great work.
--
ArthurClemens - 20 Apr 2005