Closed (fixed)
Project:
MathJax: LaTeX for Drupal
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2016 at 19:25 UTC
Updated:
18 Jul 2020 at 05:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cilefen commentedComment #3
cilefen commentedComment #4
joelpittetDo you have a preference @cilefen which direction this issue takes? I don't mind rolling a patch
Comment #5
cilefen commented@joelpittet I am open to anything.
Comment #6
joelpittetOk here's something similar to what I did with olark module.
Comment #8
joelpittetComment #9
joelpittetTypo from copy/paste
Comment #10
cilefen commentedThe "hello world" library test is on an admin page. We should special case that.
Comment #11
staceroni commentedThe site I am using this on has 15 content types, but the Mathjax library only needs to be used in 1 content type.
The ability to restrict the Mathjax library to certain paths would certainly be helpful.
Comment #12
joelpittet@staceroni Have a look at this patch: #3016329: Conditionally attach MathJax libraries and markup It only renders if there is content!
Comment #13
joelpittet@cilefen I can't see a "hello world" library test, what is the route for that?
Comment #14
cilefen commented@joelpittet https://git.drupalcode.org/project/mathjax/blob/8.x-2.x/mathjax.routing....
Comment #15
joelpittetAh good catch but we already exclude implicitly by manually adding the libraries on that form.
https://git.drupalcode.org/project/mathjax/blob/8.x-2.x/src/Form/Mathjax...
Here's an update with the config actually saving and an update hook to preserve BC but leaving new installs having it disabled.
Comment #17
joelpittetCommitted to the dev branch