Skip to content

Commit

Permalink
0.3.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasan Özbey committed Jun 29, 2021
1 parent 920d945 commit 9994157
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,6 @@
### 0.3.7
- Use `['oncreate', 'onupdate']` lifecycle hooks for `CommentPost` component instead of `onupdate` only.

### 0.3.6
- **Fix** wrong KaTeX css version.

Expand Down
2 changes: 1 addition & 1 deletion extend.php
Expand Up @@ -11,7 +11,7 @@
* @author Hasan Özbey <hasanoozbey@gmail.com>
* @copyright 2020
* @license The MIT License
* @version Release: 0.3.5
* @version Release: 0.3.7
* @link https://github.com/the-turk/flarum-mathren
*/

Expand Down
2 changes: 1 addition & 1 deletion js/dist/forum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/package.json
Expand Up @@ -2,7 +2,7 @@
"name": "@the-turk/flarum-mathren",
"description": "TeX math rendering for your forum.",
"license": "MIT",
"version": "0.3.5",
"version": "0.3.7",
"dependencies": {
"flarum-webpack-config": "0.1.0-beta.16.2",
"webpack": "^4.46.0",
Expand Down
2 changes: 1 addition & 1 deletion js/src/forum/index.js
Expand Up @@ -56,7 +56,7 @@ app.initializers.add('the-turk-mathren', () => {
};

/* Run KaTeX renderer on every post loading */
extend(CommentPost.prototype, 'onupdate', function () {
extend(CommentPost.prototype, ['oncreate', 'onupdate'], function () {
const postId = this.attrs.post.id();

$.each($('.Post-body', this.element), function (i, p) {
Expand Down

0 comments on commit 9994157

Please sign in to comment.