emichael / texthings

Tex All the Things: Chrome extension which typesets LaTeX in webpages using MathJax
https://chrome.google.com/webstore/detail/cbimabofgmfdkicghcadidpemeenbffn
GNU General Public License v3.0
77 stars 10 forks source link

Let users choose which HTML tags they don't want to render #26

Closed keatsandyeats closed 6 years ago

keatsandyeats commented 6 years ago

Users can list which tags they want MathJax to ignore; these tags are given to tex2jax's "skipTags" option. If the user does not change it, this list is tex2jax's default, which is script, noscript, style, textarea, pre, and code.

The new setting on the options page is basically a copy of the Sites option. There is also a button to restore the default tag list.

Partially addresses #24. (Thanks @Hoten for your helpful information.) I couldn't think of a good way to let users choose tags on a per-site basis. Sorry about that.

I've never worked with js or web dev at all, so I'm sure I've made style errors, or done things in a weird or inefficient way. Sorry about that, too.

connorjclark commented 6 years ago

Thanks for taking this on! Sorry, this sort of fell off my radar.

Code looks good to me.

emichael commented 6 years ago

LGTM! I'll release this in the next few days. Thanks!