Discussion:
[tw5] Anyone Currently Using MathJax with node.js TW
Kevin Kleinfelter
2018-05-01 21:23:33 UTC
Permalink
Is anyone *currently* using MathJax with the *current* node.js TW? What's
the secret sauce?

When I try http://mathjax-tw5.kantorsite.net/ directly, I get proper
rendering but also an error "Uncaught TypeError: Failed to execute
'observe' on 'MutationObserver': parameter 1 is not of type 'Node'."

When I try https://gist.github.com/kpe/cc0547b318e6f8d4ddaa, I get no
render and "Uncaught TypeError: Failed to execute 'observe' on
'MutationObserver': parameter 1 is not of type 'Node'."

When I try https://gist.github.com/kpe/cc0547b318e6f8d4ddaa plus the fix
suggested in its comments, I get no render and "TypeError: Argument 1
('target') to MutationObserver.observe must be an instance of Node."

TIA
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8ea37595-3217-4c6a-9c52-db0d06b13def%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kevin Kleinfelter
2018-05-01 22:07:14 UTC
Permalink
Found a solution:

Use https://gist.github.com/kpe/cc0547b318e6f8d4ddaa
<https://www.google.com/url?q=https%3A%2F%2Fgist.github.com%2Fkpe%2Fcc0547b318e6f8d4ddaa&sa=D&sntz=1&usg=AFQjCNG6AVXYgHyCgA_mwRM_T5ViKSkyqA> plus
the fix suggested in its comments. He describes two ways to install it.
The trick is to use the manually-created files in the plugins directory,
not to create a startup tiddler. It looks to me like maybe there are no
tc-story-river nodes at the time the code is executed as a startup tiddler.
Post by Kevin Kleinfelter
Is anyone *currently* using MathJax with the *current* node.js TW? What's
the secret sauce?
When I try http://mathjax-tw5.kantorsite.net/ directly, I get proper
rendering but also an error "Uncaught TypeError: Failed to execute
'observe' on 'MutationObserver': parameter 1 is not of type 'Node'."
When I try https://gist.github.com/kpe/cc0547b318e6f8d4ddaa, I get no
render and "Uncaught TypeError: Failed to execute 'observe' on
'MutationObserver': parameter 1 is not of type 'Node'."
When I try https://gist.github.com/kpe/cc0547b318e6f8d4ddaa
<https://www.google.com/url?q=https%3A%2F%2Fgist.github.com%2Fkpe%2Fcc0547b318e6f8d4ddaa&sa=D&sntz=1&usg=AFQjCNG6AVXYgHyCgA_mwRM_T5ViKSkyqA>
Argument 1 ('target') to MutationObserver.observe must be an instance of
Node."
TIA
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9d5fa4ec-0aef-47ee-aa14-18abfd4b7600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ste Wilson
2018-05-02 10:00:19 UTC
Permalink
Just out of interest what advantage/ difference is there using mathjax over the katex plugin?
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a227759a-49e3-46d9-b1fd-f37b20a3b2a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2018-05-02 14:31:59 UTC
Permalink
Post by Ste Wilson
Just out of interest what advantage/ difference is there using mathjax
over the katex plugin?
TiddlyWiki switched to katex, since it is 100% offline.

-m
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2b91aa96-76af-44e0-b5d3-a4445de44be3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeremy Ruston
2018-05-02 16:32:23 UTC
Permalink
Post by PMario
TiddlyWiki switched to katex, since it is 100% offline.
The other factor is that MathJax only runs in the browser, and so can’t be used (for example) under Node.js to generate static HTML pages.

Best wishes

Jeremy.
Post by PMario
-m
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
Visit this group at https://groups.google.com/group/tiddlywiki <https://groups.google.com/group/tiddlywiki>.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2b91aa96-76af-44e0-b5d3-a4445de44be3%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/2b91aa96-76af-44e0-b5d3-a4445de44be3%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5BD231CC-6F05-4DB1-A7F6-23C96322367D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...