blog-engine-sac
Advanced tools
Comparing version 5.12.4 to 5.12.5
{ | ||
"name": "blog-engine-sac", | ||
"version": "5.12.4", | ||
"version": "5.12.5", | ||
"description": "static site generator, that uses markdown files as input and outputs web pages", | ||
@@ -26,3 +26,3 @@ "license": "CC0-1.0", | ||
"make-fetch-happen": "^8.0.10", | ||
"markdown": "^0.5.0", | ||
"markdown-it": "^12.0.2", | ||
"mime-types": "^2.1.27", | ||
@@ -29,0 +29,0 @@ "node-html-parser": "^1.3.1", |
@@ -11,5 +11,3 @@ /* stats.birthtime, can be later than modified date | ||
import { load } from '@grossacasacs/left-phalange'; | ||
import markdownModule from "markdown"; | ||
const { markdown } = markdownModule; | ||
import { renderMarkdown } from "./processors/renderMarkdown.js"; | ||
import { generateTags, wordCount, setFinalTags } from "./tags.js"; | ||
@@ -127,3 +125,3 @@ import { niceDateString, normalizeDate } from "./dates.js"; | ||
return textFileContent(contactSource).then(function (contactMarkdown) { | ||
const contactHTMLBody = markdown.toHTML(contactMarkdown); | ||
const contactHTMLBody = renderMarkdown(contactMarkdown); | ||
return writeTextInFile(`${builtBlog}/contact.html`, createContactHtml(Object.assign({ | ||
@@ -139,3 +137,3 @@ body: contactHTMLBody, | ||
return textFileContent(aboutSource).then(function (aboutMarkdown) { | ||
const aboutHTMLBody = markdown.toHTML(aboutMarkdown); | ||
const aboutHTMLBody = renderMarkdown(aboutMarkdown); | ||
return writeTextInFile(`${builtBlog}/about.html`, createAboutHtml(Object.assign({ | ||
@@ -173,3 +171,3 @@ body: aboutHTMLBody, | ||
}; | ||
const footerHTML = markdown.toHTML(footerText); | ||
const footerHTML = renderMarkdown(footerText); | ||
commonOptions.footerText = footerHTML; | ||
@@ -176,0 +174,0 @@ commonOptions.tabTitle = commonOptions.tabTitle || commonOptions.mainTitle; |
export { processPostAsMD, formatMD }; | ||
import markdownModule from "markdown"; | ||
const { markdown } = markdownModule; | ||
import {renderMarkdown} from "./renderMarkdown.js"; | ||
@@ -11,3 +10,3 @@ | ||
if (content) { | ||
postHTML = markdown.toHTML(content); | ||
postHTML = renderMarkdown(content); | ||
} else { | ||
@@ -21,2 +20,2 @@ postHTML = `<p>Empty</p>`; | ||
}); | ||
}; | ||
}; |
@@ -0,0 +0,0 @@ export { consoleOutputEarly, consoleOutputReady }; |
@@ -0,0 +0,0 @@ export { isLocalUrl }; |
Sorry, the diff of this file is too big to display
521634
50
10741
+ Addedmarkdown-it@^12.0.2
+ Addedargparse@2.0.1(transitive)
+ Addedentities@2.1.0(transitive)
+ Addedlinkify-it@3.0.3(transitive)
+ Addedmarkdown-it@12.3.2(transitive)
+ Addedmdurl@1.0.1(transitive)
+ Addedterser@5.38.1(transitive)
+ Addeduc.micro@1.0.6(transitive)
- Removedmarkdown@^0.5.0
- Removedabbrev@1.1.1(transitive)
- Removedmarkdown@0.5.0(transitive)
- Removednopt@2.1.2(transitive)
- Removedterser@5.38.0(transitive)