Comparing version 0.4.8 to 0.5.0
@@ -43,3 +43,3 @@ "use strict"; | ||
if (!this.metaData.body) { | ||
this.metaData.body = new MarkDownIt().render(this.content); | ||
this.metaData.body = new MarkDownIt({ html: true }).render(this.content); | ||
} | ||
@@ -46,0 +46,0 @@ return this.metaData.body; |
@@ -60,3 +60,3 @@ "use strict"; | ||
//fix to handle the body variable from markdown. | ||
source = source.replace("{{body}}", post.body); | ||
//source = source.replace("{{body}}", post.body); | ||
result = this.renderTemplate(source, post); | ||
@@ -63,0 +63,0 @@ } |
{ | ||
"name": "writr", | ||
"version": "0.4.8", | ||
"version": "0.5.0", | ||
"description": "A Simple to Use Markdown Blog", | ||
@@ -17,3 +17,3 @@ "main": "./dist/index", | ||
"test": "yarn nyc mocha", | ||
"test-output": "yarn compile && node ./dist/index.js -p ./blog_example", | ||
"test-output": "yarn compile && node ./bin/writr -p ./blog_example", | ||
"coverage": "nyc report --reporter=json && codecov -f coverage/*.json -t 62b3983c-08a1-425f-99b9-71e84fef74bc" | ||
@@ -20,0 +20,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58812