vimd 0.4.0 → 0.4.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAkBA,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAsB,YAAY,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CA2Ef"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAkBA,UAAU,YAAY;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAsB,YAAY,CAChC,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CAuEf"}
@@ -48,14 +48,10 @@ export async function buildCommand(filePath, options) {
48
48
  : path.join(path.dirname(absolutePath), path.basename(filePath, path.extname(filePath)) + '.html');
49
49
  Logger.info(`Output: ${outputPath}`);
50
50
  // 7. Prepare converter with selected parser
51
- const pandocOptions = {
52
- ...config.pandoc,
53
- standalone: true, // build always uses standalone
54
- };
55
- const parser = ParserFactory.create(parserType, pandocOptions, config.math, fromFormat);
51
+ const parser = ParserFactory.create(parserType, config.pandoc, config.math, fromFormat);
56
52
  const converter = new MarkdownConverter({
57
53
  theme: config.theme,
58
- pandocOptions: pandocOptions,
54
+ pandocOptions: config.pandoc,
59
55
  customCSS: config.css,
60
56
  template: config.template || undefined,
61
57
  mathEnabled: config.math?.enabled ?? true,
@@ -4,7 +4,7 @@ export const DEFAULT_CONFIG = {
4
4
  host: 'localhost',
5
5
  open: true,
6
6
  pandoc: {
7
- standalone: true,
7
+ standalone: false, // Template is always used, so standalone is not needed
8
8
  toc: false,
9
9
  tocDepth: 3,
10
10
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vimd",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Real-time Markdown preview tool with pandoc (view markdown)",
5
5
  "type": "module",
6
6
  "keywords": [