Commit Graph
5 Commits
Author SHA1 Message Date
Joffrey JAFFEUX 69494ca5a4 FIX: prevents inline span to be forced into blocks (#69)
Prior to this fix the "block" style would be used on any node (block or inline).
2023-01-27 17:05:55 +01:00
Joffrey JAFFEUX c0179a56f8 FIX: ensures chat is present/enabled (#68)
Without this when chat is disabled the API is not supercharged with these methods and it will cause an exception:

```
Uncaught (in promise) TypeError: t.decorateChatMessage is not a function
    initialize discourse-math-mathjax.js:102
    initialize discourse-math-mathjax.js:119
    withPluginApi discourse-f7231bd5d10aa613b323a0cac71d8003baa74ef74f674fe4f91e4857994e661b.br.js:4735
    initialize discourse-math-mathjax.js:118
    initialize discourse-f7231bd5d10aa613b323a0cac71d8003baa74ef74f674fe4f91e4857994e661b.br.js:67
    runInstanceInitializers Ember
    each dag-map.js:192
    walk dag-map.js:121
    each dag-map.js:66
    topsort dag-map.js:72
    Ember 4
    invoke queue.ts:201
    flush queue.ts:98
    flush deferred-action-queues.ts:75
    _end index.ts:616
    _boundAutorunEnd index.ts:257
discourse-math-mathjax.js:102
```
2023-01-18 14:39:57 +01:00
Joffrey JAFFEUX 6f59c46912 DEV: adds chat support (#67)
This commit is also removing jquery code and simplifying code.

Note that discourse-math is currently causing jumpy-ness in topics or in chat as the resulting processed mathjax element has a different size than the initial text node.
2023-01-18 12:35:27 +01:00
Isaac Janzen bf07db4916 DEV: Remove use of run-loop-and-computed-dot-access (#55)
Context: https://deprecations.emberjs.com/v3.x/#toc_deprecated-run-loop-and-computed-dot-access
2022-06-17 13:31:08 +02:00
Jarek Radosz c802e0d5e1 DEV: Lose the es6 suffix (#46) 2022-03-05 17:21:55 +01:00