2026-07-24 20:57:43 +02:00
|
|
|
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>',
|
2026-07-24 21:45:33 +02:00
|
|
|
info = 'extract experience title and description from markdown file',
|
2026-07-24 20:57:43 +02:00
|
|
|
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',
|
2026-07-24 21:43:36 +02:00
|
|
|
default="*.md",
|
2026-07-24 20:57:43 +02:00
|
|
|
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
|