mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-27 05:01:57 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
72ed65b6ab
commit
5bf776826a
@ -11,6 +11,10 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
.checked {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<script src="ext-lib/jquery.js"></script>
|
||||
|
||||
17
wiki.js
17
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 $('<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': {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user