diff options
-rw-r--r-- | src/domain/posts.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/domain/posts.js b/src/domain/posts.js index ab35518..c6b57c5 100644 --- a/src/domain/posts.js +++ b/src/domain/posts.js @@ -3,6 +3,7 @@ const h = require("highland"); const fs = require("fs"); const path = require("path"); +const toml = require("toml"); const { promisify } = require("util"); const matter = require("gray-matter"); const markdown = require("../modules/markdown.js"); @@ -11,7 +12,10 @@ const { indentForTemplate, postIndentLevel } = require("../responders.js"); const grayMatterOptions = { lang: "toml", - delims: "+++" + delims: "+++", + engines: { + toml: toml.parse.bind(toml) + } }; function* lowercaseKeys(iterator) { |