motyl

Opinionated blog-aware static site generator written in Ruby
Log | Files | Refs | README | LICENSE

commit 5e0286acd3786ad0adbe72b8b7489291295149df
parent 185cbaa73e9e286fdf42415038b5fa4043586eed
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 13 Oct 2016 11:55:11 +0200

Add support for fenced code blocks

Diffstat:
Msrc/motyl.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/motyl.lua b/src/motyl.lua @@ -7,7 +7,7 @@ # http://www.cambus.net/motyl/ # # # # Created: 2016-02-16 # -# Last Updated: 2016-10-09 # +# Last Updated: 2016-10-13 # # # # Motyl is released under the BSD 2-Clause license. # # See LICENSE file for details. # @@ -46,7 +46,7 @@ end -- Load and process Markdown file local function loadMD(path) local writer = lunamark.writer.html.new() - local parse = lunamark.reader.markdown.new(writer) + local parse = lunamark.reader.markdown.new(writer, { fenced_code_blocks = true }) return parse(readFile(path)) end