Hello,
I wanted to export the tiddlers to html. I was looking for a way how.
1. I've noticed that there is some kind of built-in API server.
2. but I can't seem to be able to pull the json file either from there or from my own wiki?
3. The goals is for me to being able to export either final html like:
4. or raw:
5. So I can later use a function to convert it to html?
I have access to a file as well, so if there is a command line tool that does this, and I can import it from shell or python or node that would be great.
6. Am I correctly assuming that below Remarkable will do the job if I'm able to get raw data?
(Sample code:
const { Remarkable } = require('remarkable');
let md = new Remarkable();
function constructHtml(req) {
let text = md.render(req);
let response = {
value: text
}
return response
};
7. I'm getting below when I do get url from python which tells me I'm doing it wrong.
Thanks
Lucas