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

susam / texme / 80
100%

Build:
DEFAULT BRANCH: master
Ran 21 Sep 2020 10:59AM UTC
Jobs 5
Files 1
Run time 4s
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

pending completion
80

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%)

66.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 80.1 21 Sep 2020 10:59AM UTC 0
100.0
Travis Job 80.1
2 80.2 21 Sep 2020 10:59AM UTC 0
100.0
Travis Job 80.2
3 80.3 21 Sep 2020 10:59AM UTC 0
100.0
Travis Job 80.3
4 80.4 21 Sep 2020 10:59AM UTC 0
100.0
Travis Job 80.4
5 80.5 21 Sep 2020 10:59AM UTC 0
100.0
Travis Job 80.5
Source Files on build 80
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #80
  • dc6206ae on github
  • Prev Build on master (#78)
  • Next Build on master (#81)
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