Commit f22ecce5 authored by bc1417's avatar bc1417
Browse files

added pics and links to markdown, pdf

parent 9cf4d395
Pipeline #65571 passed with stages
in 3 minutes and 33 seconds
......@@ -31,6 +31,8 @@ public class MarkdownResultPage implements Page {
FileWriter fw = new FileWriter(tmp);
fw.write("#" + query + "\n");
fw.write(answer.getAnswer());
fw.write("![alt text]("+answer.getImgURL()+" \"Pic\")");
fw.write("[Learn More!]("+answer.getWikiURL()+")");
fw.close();
FileInputStream fileInputStream = new FileInputStream(tmp);
......
......@@ -35,6 +35,8 @@ public class PDFResultPage implements Page {
FileWriter fw = new FileWriter(md);
fw.write("#" + query + "\n");
fw.write(answer.getAnswer());
fw.write("![alt text]("+answer.getImgURL()+" \"Pic\")");
fw.write("[Learn More!]("+answer.getWikiURL()+")");
fw.close();
File pdf = File.createTempFile(query, ".pdf");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment