From c0788e61ce9d5cb18abd6aa9da2520abc42435f9 Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Tue, 6 Nov 2018 16:41:00 -0500 Subject: [PATCH] Change code block style --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e02f5be..f886c94 100644 --- a/index.js +++ b/index.js @@ -139,14 +139,15 @@ function collectPosts(data) { function initTurndownService() { let turndownService = new turndown({ headingStyle: 'atx', - bulletListMarker: '-' + bulletListMarker: '-', + codeBlockStyle: 'fenced' }); // preserve embedded scripts (for gists, codepens, etc.) turndownService.addRule('script', { filter: 'script', replacement: (content, node) => { - let html = node.outerHTML.replace('async=""', 'async') + let html = node.outerHTML.replace('async=""', 'async'); return '\n\n' + html + '\n\n'; } });