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

runarberg / mathup / 6738109423
99%

Build:
DEFAULT BRANCH: main
Ran 02 Nov 2023 08:54PM UTC
Jobs 1
Files 45
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

02 Nov 2023 08:53PM UTC coverage: 97.819% (+0.2%) from 97.663%
6738109423

push

github

runarberg
Implement command tokens and handlers in parser

For now only font commands are commands, previously these were styles
and implemented along with other prefixes. Now commands will become
new binary prefix nodes in the AST which can apply special commands on
the nodes below. For fonts this means to some text transforms or add style
attributes. In the future we might implement color #40 and align #39
with command tokens.

**Language Changes**

- Now you can stack some font commands to combine them. For example,
  if you want bold italic A you can write `bf it A`. Not all font
  commands stack though e.g. `fr bb` will not give you double-struck
  fraktur.

**Output Changes**

- With the exception of `mathvariant="normal"` we no longer use the
  `mathvariant` attribute. Instead we apply the relevant text
  transform directly and the unicode characters in the output (see #70).
- Text gets some font commands applied via CSS (see #78). Specifically
  this is `bf`, `it`, `sf` and `tt` on texts (e.g. `bf tt "text"`).
  The latter two change the font-family of the output. If you want
  control of sans-serif and monospace fonts in the output you can set
  the CSS custom properties `--mathup-font-family-sans-serif`
  and `--mathup-font-family-monospace` respectively.

**Breaking Changes**

- Font commands now only applies to the first item in a term,
  previously it was applied on the entire term (see #77). `bf A_(i j)`
  would previously also boldface the indices (i j), but now it only
  boldfaces the matrix A.
- Font commands will no longer unwrap fences around the operant. For
  example if you write `bf(A)` previously the parenteses would be
  stripped, and you would only end up with A. Now the parenteses are
  left as is.

Resolves: #70
Resolves: #77
Resolves: #78

585 of 609 branches covered (0.0%)

Branch coverage included in aggregate %.

535 of 535 new or added lines in 10 files covered. (100.0%)

3003 of 3059 relevant lines covered (98.17%)

183.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.93
0.0% src/compiler/parser/handlers/prefix.js
2
96.88
src/compiler/parser/handlers/command.js
2
99.31
src/compiler/transformer/transforms/text-transforms.js
Jobs
ID Job ID Ran Files Coverage
1 6738109423.1 02 Nov 2023 08:54PM UTC 45
97.82
GitHub Action Run
Source Files on build 6738109423
  • Tree
  • List 45
  • Changed 26
  • Source Changed 9
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #6738109423
  • a0e160de on github
  • Prev Build on main (#6738009737)
  • Next Build on main (#6738499448)
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

© 2025 Coveralls, Inc