37 lines
854 B
Lua
37 lines
854 B
Lua
|
|
local util = require('util')
|
||
|
|
|
||
|
|
app.on('scan_experience', function(exp)
|
||
|
|
--print_r(exp)
|
||
|
|
end)
|
||
|
|
|
||
|
|
app.on('scan_experience_file', function(exp)
|
||
|
|
end)
|
||
|
|
|
||
|
|
app.on('set', function(k,v)
|
||
|
|
print("content was updated")
|
||
|
|
end)
|
||
|
|
|
||
|
|
-- this registers the plugin UI
|
||
|
|
local plugin = {
|
||
|
|
name = 'Markdown <b class="tag">disabled</b>',
|
||
|
|
info = '',
|
||
|
|
opts = {
|
||
|
|
{
|
||
|
|
key='app.opts.plugin_markdown_files',
|
||
|
|
title='Markdown files',
|
||
|
|
info='Space-separated, <a href="http://lua-users.org/wiki/PatternsTutorial" target="_blank">lua patterns</a> are allowed',
|
||
|
|
default="README.md",
|
||
|
|
values=''
|
||
|
|
},
|
||
|
|
{
|
||
|
|
key='app.opts.plugin_markdown_strategy',
|
||
|
|
title='Markdown strategy',
|
||
|
|
info='',
|
||
|
|
default="README.md",
|
||
|
|
values={headerparagraph='title is first header + 1st paragraph is description',disabled='disabled'}
|
||
|
|
},
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return plugin
|