
-
AuthorPosts
-
August 30, 2017 at 8:32 am #845675
Hi Kriesi Team,
I have a table I’m trying to put a backslash into in order to format a formula using LaTeX. Seems like the table strips out backslashes and the html entity equally. If I escape the backslash with another, each time I open the table in the layout builder, it strips them away one at a time.
I tried the format from this thread using Quick CSS for an escaped backslash instead of a less than. It works to display a backslash, but the span tags won’t let mathjax.org interpret the backslash as LaTeX:
I tried the functions.php edit in this thread, but I couldn’t get it to implement correctly even without the LaTeX tags:
In this thread, Kriesi mentioned adding a stripslash function to one of the php files, I’m wondering if that is what’s causing this:
https://kriesi.at/support/topic/table-fields-with-url-broken-when-re-saving-page/Here is the link to the page I’m working on. You can see in the table under the Division Property row, how the math code is missing it’s backslashes. The text below the table holds it’s backslashes and shows what it should look like in the table.
Any way around this? Worst case can I edit the php file that is stripping the backslashes out and just keep notes to update it when the theme is updated?
Thanks.
August 31, 2017 at 2:00 pm #846246Hey siirous,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaAugust 31, 2017 at 2:45 pm #846266Requested info in private content.
September 3, 2017 at 2:49 am #847263Hi,
I see you are using javascript to input the backslash, try changing it like this:jQuery(window).load(function(){ jQuery('.backslash').replaceWith('\'); });
Or try removing the javascript and try this code in the General Styling > Quick CSS field:
.backslash:after {content: '\';}
Yet keep your span backslash class in your post:
<span class="backslash"></span>
Best regards,
MikeSeptember 3, 2017 at 6:26 pm #847423Mike,
The javascript adjustment works perfect. Everything gets displayed and interpreted by mathjax just as it should.
Thanks very much for the support!
September 3, 2017 at 9:03 pm #847444 -
AuthorPosts
- The topic ‘Backslashes Stripped from Table’ is closed to new replies.