Add a Github plugin which can be used to read from a Github repository

This commit is contained in:
Saba
2023-06-13 14:40:06 -07:00
parent c68cde4803
commit a6cd96a6a9
18 changed files with 224 additions and 25 deletions

View File

@@ -66,6 +66,8 @@
return render_ledger(query, data);
} else if (type === "pdf") {
return render_pdf(query, data);
} else if (type == "github") {
return render_markdown(query, data);
} else {
return `<div id="results-plugin">`
+ data.map((item) => `<p>${item.entry}</p>`).join("\n")
@@ -296,7 +298,7 @@
text-align: left;
white-space: pre-line;
}
#results-markdown {
#results-markdown, #results-github {
text-align: left;
}
#results-music,