fix(copy-tex): Use JS (instead of CSS) to select full equation, solving display glitches (#3586)

* copy-tex: Use JS to select full equation instead of CSS

* remove CSS

* Update webpack.common.js

* more build tweaks

* Update contrib/copy-tex/copy-tex.js

Co-authored-by: Erik Demaine <edemaine@mit.edu>

* Document new behavior

BREAKING CHANGE: copy-tex extension no longer has (or requires) a CSS file.

* Code cleanup, lint fixes, port to Flow

* Rewrite to extend both start and end of range

* Remove contrib/**/*.css linting

Co-authored-by: Erik Demaine <edemaine@mit.edu>
This commit is contained in:
Fons van der Plas
2022-06-06 18:09:30 +02:00
committed by GitHub
parent 023cc0342c
commit 8c2d852c4a
9 changed files with 64 additions and 56 deletions

View File

@@ -24,7 +24,6 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,400,700,700i">
<link rel="stylesheet" href="static/katex.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="static/index.css">
<link rel="stylesheet" href="static/copy-tex.min.css" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.1/dist/clipboard.min.js" integrity="sha256-hIvIxeqhGZF+VVeM55k0mJvWpQ6gTkWk3Emc+NmowYA=" crossorigin="anonymous"></script>
<script defer src="static/katex.min.js" crossorigin="anonymous"></script>