Remove redundant query as title in results section

- Regain screen real-estate
- Remove unused parameters, html being returned by org.js
This commit is contained in:
Debanjum Singh Solanky
2022-08-05 06:15:09 +03:00
parent 06afeec7e2
commit 017e287b8a
2 changed files with 3 additions and 11 deletions

View File

@@ -22,7 +22,7 @@
}
function render_org(query, data, classPrefix="") {
var orgCode = `Query: ${query}\n` + data.map(function (item) {
var orgCode = data.map(function (item) {
return `${item.entry}`
}).join("\n")
var orgParser = new Org.Parser();
@@ -33,7 +33,7 @@
function render_markdown(query, data) {
var md = window.markdownit();
return md.render(`# Query: ${query}\n` + data.map(function (item) {
return md.render(data.map(function (item) {
return `${item.entry}`
}).join("\n"));
}