Skip to content

Commit

Permalink
fix for issue #72, which caused .html files to be
Browse files Browse the repository at this point in the history
passed to marked and converted to markup
  • Loading branch information
jeffschwartz committed Jun 29, 2019
1 parent bdd7dbd commit 1289fa0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/generator/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// ToDo: provide option to create minimum application when creating a new project.
// ToDo: provide options to create assets: template, fragment, include, callback.

// ToDo: make missing assets terminate process an option - currently warning?
// Bug: rename config.public (i.e. public is a reserved word) to config.publicFolder?
// ToDo: is assigning modified date to each asset still required as the modified date from .cache/stats.json is being used and not the individual files?
Expand Down
2 changes: 1 addition & 1 deletion lib/metadata/getAllIncludesMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const commonMetadata = path => {
metadata.path = path;
metadata.matter = getCachedMatter(path);
metadata.matter.data.appendToTarget = metadata.matter.data.appendToTarget || false;
metadata.matter.content = parse(path).ext === "html"
metadata.matter.content = parse(path).ext === ".html"
? metadata.matter.content
: marked(metadata.matter.content);
return metadata;
Expand Down

0 comments on commit 1289fa0

Please sign in to comment.