From 5bf776826ad7387399d7262f02f4b843ed1942aa Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 31 Jul 2016 06:22:35 +0300 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- index.html | 4 ++++ wiki.js | 17 +++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 1ca34f4..c60a821 100755 --- a/index.html +++ b/index.html @@ -11,6 +11,10 @@ display: block; } +.checked { + text-decoration: line-through; +} + diff --git a/wiki.js b/wiki.js index 211405a..0cadd81 100755 --- a/wiki.js +++ b/wiki.js @@ -330,10 +330,20 @@ var macro = { // XXX move this to a plugin... markdown: function(context, elem){ - var converter = new showdown.Converter() + var converter = new showdown.Converter({ + strikethrough: true, + tables: true, + tasklists: true, + }) return $('') .html(converter.makeHtml($(elem).html())) + // XXX add click handling to checkboxes... + .find('[checked]') + .parent() + .addClass('checked') + .end() + .end() }, }, @@ -641,9 +651,8 @@ var data = { }, 'Templates/pages': { - text: '' - +' @source(./path)
' - +'\n', + text: + ' @source(./path)
\n' }, 'Templates/_raw': {