minor tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-07-31 06:22:35 +03:00
parent 72ed65b6ab
commit 5bf776826a
2 changed files with 17 additions and 4 deletions

View File

@ -11,6 +11,10 @@
display: block;
}
.checked {
text-decoration: line-through;
}
</style>
<script src="ext-lib/jquery.js"></script>

17
wiki.js
View File

@ -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 $('<span>')
.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: ''
+'<macro src="../**"> @source(./path)<br> </macro>'
+'\n',
text:
'<macro src="../**"> @source(./path)<br> </macro>\n'
},
'Templates/_raw': {