• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

susam / texme / 80 / 4
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 21 Sep 2020 10:59AM UTC
Files 1
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Sep 2020 10:57AM UTC coverage: 100.0%. Remained the same
80.4

push

travis-ci-com

susam
Fix tokenization of nested LaTeX environments

The following input file reproduces the issue:

    <!DOCTYPE html><script src="texme.js"></script><textarea>
    \begin{align*}
    A & = \begin{bmatrix}
            1 & 0 \\
            0 & 1
          \end{bmatrix} \\
    {a}_{i} & = {b}_{i}
    \end{align*}

Without this fix, the `align` environment is masked only partially as
follows:

    ::MASK:: \\
    {a}_{i} & = {b}_{i}
    \end{align*}

The masking ends as soon as the first `\end` command is encountered. As
a result, after Markdown rendering and unmasking, the output looks like
this:

    <p>\begin{align*}
    A & = \begin{bmatrix}
            1 & 0 \\
            0 & 1
          \end{bmatrix} \
    {a}<em>{i} &amp; = {b}</em>{i}
    \end{align*}</p>

This is an issue because `{a}_{i} & = {b}_{i}` has been rendered as
Markdown, thus introducing unwanted `<em>` tags. Further, this is a
broken input for MatJax. MathJax succeeds in rendering only the
`bmatrix` environment correctly. It fails to render the `align*`
environment.

With this fix, the entire `align` environment is masked as expected:

    ::MASK::

Thus, after Markdown rendering and unmasking, the output is a valid
input for MathJax:

    <p>\begin{align*}
    A & = \begin{bmatrix}
            1 & 0 \\
            0 & 1
          \end{bmatrix} \\
    {a}_{i} & = {b}_{i}
    \end{align*}</p>

MathJax renders this successfully.

29 of 29 branches covered (100.0%)

Branch coverage included in aggregate %.

110 of 110 relevant lines covered (100.0%)

13.22 hits per line

Source Files on job 80.4
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 78
  • Travis Job 80.4
  • dc6206ae on github
  • Prev Job for on master (#78.1)
  • Next Job for on master (#81.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc