Skip to content
This repository has been archived by the owner on Dec 28, 2018. It is now read-only.

Improve highlighting of math equations #212

Open
robertknight opened this issue Jun 7, 2016 · 0 comments
Open

Improve highlighting of math equations #212

robertknight opened this issue Jun 7, 2016 · 0 comments

Comments

@robertknight
Copy link
Member

Highlighting or annotating a math equation rendered using MathJax or KaTeX currently results in each glyph within the equation being highlighted separately. The result would look much nicer if the whole equation, or the span of the equation that was highlighted, was highlighted as a single block.

  1. Go to this page http://cs231n.github.io/linear-classify/ (which renders math using MathJax) or this page https://khan.github.io/KaTeX/
  2. Activate Hypothesis and use it to highlight an equation

Current result:

Each element of the equation is highlighted individually, which looks pretty ugly. H currently wraps each element in its own <span class="annotator-hl"> tag.

Preferred result

Ideally the whole equation or selected region would be highlighted.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant