Enable support for injecting js, e.g., Mathjax or Katex #2164

Open
opened this Issue Jan 23, 2019 · 2 comments

Projects
None yet
2 participants

fosshelper commented Jan 23, 2019

Hi,

First off, thanks for this project.

Feature.

Intended outcome:

I am trying to use Coral Talk on my website, and am anticipating people using latex in their comments. I would like to be able to include mathjax or katex script in the Talk subdomain iframe, so that math in the comments is properly rendered. Including the script in the original webpage, doesn't include it in the iframe (security limitation of js).

Version and environment

Dockerized Coral Talk on Debian 9

Member

kgardnr commented Jan 23, 2019

 Thank you @fosshelper for your kind words! This sounds like a unique use case, and would probably be best suited to be a plugin (probably an adaptation of our talk-plugin-rich-text). If you'd like to take this on, you can host this on your own repo and let us know and we can help you with code reviews/questions. Thank you again!

Author

fosshelper commented Jan 24, 2019

 Thanks for considering. I might take this on, but probably after a while (website is still in infancy and busy with other work at the moment). In particular, if you already have a plugin for similar functionality, it shouldn't be too difficult.