Skip to content

A fork of Commento++ with added KaTeX support

License

Notifications You must be signed in to change notification settings

cxdorn/commento-with-KaTeX

 
 

Repository files navigation

Commento with KaTeX

A fork of Commento++, with added support for comments that contain math written with KaTeX (the KaTeX scripts need to be loaded on the webpage). See there (as well as the original Commento documentation) for installation instructions.

Deploy

Bugfixes

Besides KaTeX support, a few further bugs have been fixed (at the time of forking).

  • Editing a comment, collapsing the comments, and opening it again, wrongly deleted the edits.
  • Editing the comment, saving the comment, editing it again, then canceling the second edit, led to the first edit wrongly being reversed.
  • Using the editing function wrongly overwrote the commentsMap variable, leading e.g. to breaking the sorting function
  • Deleting a comment removed all children from the DOM (not from the database though thankfully)
  • When re-rendering the comments (as nodes in the DOM), the callback function onDiscardNode had a condition that threw an error when stumbling over nodes without innerHTML (this bug appeared in particular when using KaTeX).

About

A fork of Commento++ with added KaTeX support

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 42.9%
  • JavaScript 29.5%
  • SCSS 13.6%
  • HTML 9.7%
  • PLpgSQL 1.6%
  • Makefile 1.2%
  • Other 1.5%