vimd 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ import { MathConfig } from '../../config/types.js';
7
7
  export declare class MarkdownItParser implements Parser {
8
8
  readonly name = "markdown-it";
9
9
  private md;
10
- constructor(mathConfig?: MathConfig);
10
+ constructor(_mathConfig?: MathConfig);
11
11
  /**
12
12
  * Convert markdown to HTML.
13
13
  * @param markdown - The markdown content to convert
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-it-parser.d.ts","sourceRoot":"","sources":["../../../src/core/parser/markdown-it-parser.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,MAAM;IAC7C,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,OAAO,CAAC,EAAE,CAAa;gBAEX,UAAU,CAAC,EAAE,UAAU;IA8BnC;;;;OAIG;IACG,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9C;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;CAGtC"}
1
+ {"version":3,"file":"markdown-it-parser.d.ts","sourceRoot":"","sources":["../../../src/core/parser/markdown-it-parser.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD;;;GAGG;AACH,qBAAa,gBAAiB,YAAW,MAAM;IAC7C,QAAQ,CAAC,IAAI,iBAAiB;IAC9B,OAAO,CAAC,EAAE,CAAa;gBAEX,WAAW,CAAC,EAAE,UAAU;IA2BpC;;;;OAIG;IACG,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAI9C;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;CAGtC"}
@@ -3,13 +3,12 @@ import MarkdownIt from 'markdown-it';
3
3
  import hljs from 'highlight.js';
4
4
  import strikethrough from 'markdown-it-strikethrough-alt';
5
5
  import taskLists from 'markdown-it-task-lists';
6
- import texmath from 'markdown-it-texmath';
7
6
  /**
8
7
  * Markdown parser using markdown-it library.
9
8
  * Provides fast markdown to HTML conversion with GFM support.
10
9
  */
11
10
  export class MarkdownItParser {
12
- constructor(mathConfig) {
11
+ constructor(_mathConfig) {
13
12
  this.name = 'markdown-it';
14
13
  this.md = new MarkdownIt({
15
14
  html: true,
@@ -30,13 +29,10 @@ export class MarkdownItParser {
30
29
  // Enable GFM plugins
31
30
  this.md.use(strikethrough); // ~~strikethrough~~
32
31
  this.md.use(taskLists); // - [ ] task list
33
- // Enable math support
34
- if (mathConfig?.enabled) {
35
- this.md.use(texmath, {
36
- engine: { name: mathConfig.engine },
37
- delimiters: 'dollars',
38
- });
39
- }
32
+ // Note: For MathJax, we don't need a markdown-it plugin.
33
+ // MathJax will find and render $...$ and $$...$$ in the browser.
34
+ // The markdown-it-texmath plugin is for server-side KaTeX rendering,
35
+ // which conflicts with client-side MathJax rendering.
40
36
  }
41
37
  /**
42
38
  * Convert markdown to HTML.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vimd",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Real-time Markdown preview tool with pandoc (view markdown)",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -76,7 +76,6 @@
76
76
  "markdown-it": "^14.1.0",
77
77
  "markdown-it-strikethrough-alt": "^1.0.0",
78
78
  "markdown-it-task-lists": "^2.1.1",
79
- "markdown-it-texmath": "^1.0.0",
80
79
  "open": "^9.1.0",
81
80
  "polka": "^0.5.2",
82
81
  "sirv": "^3.0.2",