bugtex4ht - Bugs: bug #522, mjcli support removes '}' from...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #522: mjcli support removes '}' from formulas

Submitted by:  Hans-Jörg <hansjoerg>
Submitted on:  Sun Sep 5 17:58:53 2021  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon Sep 13 13:14:39 2021, comment #1:

Thanks for your report. Your analysis is right, the pattern for closing brackets was too greedy and matched 'content: "}"' as end of the CSS block.

I've fixed it in the development version of make4ht. I should release a new version soon.

Michal Hoftich <michal_h21>
Project Member
Sun Sep 5 17:58:53 2021, original submission:

When using make4ht with mjcli to render Mathjax upfront, closing braces are not rendered at all.

I have attached a minimal example. When I compile this with `make4ht -f html5+mjcli mjcli_test.tex "mathjax"` the browser shows "Test: {1,2,3" instead of "Test: {1,2,3}".

I think the reason for this is the code that extracts the Mathjax CSS from the HTML files. mjcli creates the record

mjx-c.mjx-c7D::before {
padding: 0.75em 0.5em 0.25em 0;
content: "}";
}

the CSS file generated by make4ht (mjcli_test-mathjax.css), however, only contains the record

mjx-c.mjx-c7D::before {
padding: 0.75em 0.5em 0.25em 0;
}

The `parse_css` function in make4ht-mjcli.lua uses `if line:match("%}") then` to detect if a line marks the end of a record. I think this matches the 'content...' line and the record is not completely red.

Hans-Jörg <hansjoerg>

 

Attached Files
file #431:  mjcli_test.tex added by hansjoerg (77B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by hansjoerg (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Sep 27 12:33:22 2021michal_h21Open/ClosedOpen=>Closed
    Sun Sep 5 17:58:54 2021hansjoergAttached File-=>Added mjcli_test.tex, #431
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray