@learnpack/learnpack 5.0.278 → 5.0.279

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@learnpack/learnpack",
3
3
  "description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
4
- "version": "5.0.278",
4
+ "version": "5.0.279",
5
5
  "author": "Alejandro Sanchez @alesanchezr",
6
6
  "contributors": [
7
7
  {
@@ -333,11 +333,11 @@ async function processExercises(
333
333
 
334
334
  // Convert markdown to HTML
335
335
  console.log("Converting markdown file:", relativeFilePath);
336
-
337
- // Use the directory name as the HTML filename instead of README.html
338
- const exerciseDirName = path.basename(path.dirname(fullPath));
339
- const htmlFileName = `${exerciseDirName}.html`;
340
- const htmlPath = path.join(outputDir, htmlFileName);
336
+ // const htmlFileName = entry.name.replace(/\.(md|markdown)$/, ".html");
337
+ const htmlPath = path.join(
338
+ outputDir,
339
+ relativeFilePath.replace(/\.(md|markdown)$/, ".html")
340
+ );
341
341
 
342
342
  console.log("HTML output path:", htmlPath);
343
343
  mkdirp.sync(path.dirname(htmlPath));