Skip to content

Commit beac55c

Browse files
committed
Enhance KaTeX integration by adding auto-render support
- Updated markdown.js to include jsmain and jsauto properties for KaTeX configuration. - Modified markdown_edit_template.tpl to define jsauto for KaTeX, enabling automatic rendering of math expressions.
1 parent c59dab7 commit beac55c

17 files changed

+113
-54
lines changed

static/editor.md/css/editormd.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license MIT License
88
* @author IBM Skills Network
99
* {@link https://github.com/ibm-skills-network/editor.md}
10-
* @updateTime 2024-03-27
10+
* @updateTime 2026-03-31
1111
*/
1212

1313
@charset "UTF-8";
@@ -3076,7 +3076,7 @@
30763076
.editormd-logo-6x:before,
30773077
.editormd-logo-7x:before,
30783078
.editormd-logo-8x:before {
3079-
content: "\e1987";
3079+
content: "󡦇";
30803080
/*
30813081
HTML Entity 󡦇
30823082
example: <span class="editormd-logo">&#xe1987;</span>
@@ -3553,7 +3553,7 @@
35533553
background-color: #f8f8f8;
35543554
}
35553555

3556-
.markdown-body img, .markdown-body video {
3556+
.markdown-body img {
35573557
max-width: 100%;
35583558
-moz-box-sizing: border-box;
35593559
box-sizing: border-box;

static/editor.md/css/editormd.logo.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license MIT License
88
* @author IBM Skills Network
99
* {@link https://github.com/ibm-skills-network/editor.md}
10-
* @updateTime 2024-03-27
10+
* @updateTime 2026-03-31
1111
*/
1212

1313
@charset "UTF-8";
@@ -51,7 +51,7 @@
5151
.editormd-logo-6x:before,
5252
.editormd-logo-7x:before,
5353
.editormd-logo-8x:before {
54-
content: "\e1987";
54+
content: "󡦇";
5555
/*
5656
HTML Entity &#xe1987;
5757
example: <span class="editormd-logo">&#xe1987;</span>

static/editor.md/css/editormd.logo.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/editor.md/css/editormd.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/editor.md/css/editormd.preview.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license MIT License
88
* @author IBM Skills Network
99
* {@link https://github.com/ibm-skills-network/editor.md}
10-
* @updateTime 2024-03-27
10+
* @updateTime 2026-03-31
1111
*/
1212

1313
@charset "UTF-8";
@@ -2401,7 +2401,7 @@
24012401
.editormd-logo-6x:before,
24022402
.editormd-logo-7x:before,
24032403
.editormd-logo-8x:before {
2404-
content: "\e1987";
2404+
content: "󡦇";
24052405
/*
24062406
HTML Entity &#xe1987;
24072407
example: <span class="editormd-logo">&#xe1987;</span>
@@ -2878,8 +2878,7 @@
28782878
background-color: #f8f8f8;
28792879
}
28802880

2881-
2882-
.markdown-body img, .markdown-body video {
2881+
.markdown-body img {
28832882
max-width: 100%;
28842883
-moz-box-sizing: border-box;
28852884
box-sizing: border-box;

static/editor.md/css/editormd.preview.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/editor.md/editormd.amd.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license MIT License
88
* @author IBM Skills Network
99
* {@link https://github.com/ibm-skills-network/editor.md}
10-
* @updateTime 2024-03-27
10+
* @updateTime 2026-03-31
1111
*/
1212

1313
/*
@@ -476,6 +476,13 @@
476476
options = id;
477477
}
478478

479+
// Backward compatibility: if called with 2 args (id, options), treat 2nd arg as options
480+
if (typeof author_ide_version === "object" && !Array.isArray(author_ide_version) && Object.keys(options).length === 0)
481+
{
482+
options = author_ide_version;
483+
author_ide_version = undefined;
484+
}
485+
479486
var classPrefix = this.classPrefix = editormd.classPrefix;
480487
var settings = this.settings = $.extend(true, {}, editormd.defaults, options);
481488

static/editor.md/editormd.amd.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)