marp-dev-preview 0.1.8 → 0.1.10
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.
- package/package.json +1 -1
- package/src/marp-utils.mjs +3 -4
package/package.json
CHANGED
package/src/marp-utils.mjs
CHANGED
|
@@ -22,19 +22,18 @@ export async function initializeMarp(themeSet) {
|
|
|
22
22
|
console.log("Initializing Marp with themes...");
|
|
23
23
|
for( const index in themeSet ) {
|
|
24
24
|
let themeDir = themeSet[index];
|
|
25
|
-
console.log("Processing theme directory:", themeDir);
|
|
26
25
|
let stats = await fs.stat(themeDir).catch(() => null);
|
|
27
26
|
if (!stats) {
|
|
28
|
-
console.warn(`
|
|
27
|
+
console.warn(`Theme ${themeDir} directory does not exist.`);
|
|
29
28
|
continue;
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
if(!stats.isDirectory()) {
|
|
33
|
-
console.warn(`
|
|
32
|
+
console.warn(`Path ${themeDir} is not a directory.`);
|
|
34
33
|
continue;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
console.log("
|
|
36
|
+
console.log("Loading themes from ", themeDir);
|
|
38
37
|
|
|
39
38
|
const themeFiles = await fs.readdir(themeDir);
|
|
40
39
|
for (const file of themeFiles) {
|