tex2jax: {
processClass: "latex",
},
Davide, is that valid?
Sean
I understand your desired usage, and will rethink the logic underlying
the preprocessor to see if it can be improved.
In the meantime, you might want to consider using something other than
<pre> as you container for your latex. For example, you could use
<div class="latex"> and have CSS like
.latex {
white-space: pre
}
(this is from memory, so the names might not be exactly right) in
order to make <div class="latex"> behave like <pre>, but allow MathJax
to process math inside of it.
Davide
Note that setting skipTags to ["body"] will mean that you no longer
skip the tags that are normally in skipTags (like script tags, and so
on). You would need to include those other tags as well.
But in any case, you are right, this does not work. Instead, you
could set the class for the body tag to be class="tex2jax_ignore", and
then it should work as you describe.
After the v1.1a release (in a few days), it will be possible to set a
global configuration parameter called "element" that is an array of
element ID's for those DOM elements to be processed, so that would be
another approach.
Davide