Hello,
I wanted to export the tiddlers to html. I was looking for a way how.
- I’ve noticed that there is some kind of built-in API server.
https://tiddlywiki.com/#WebServer%20API
- but I can’t seem to be able to pull the json file either from there or from my own wiki?
-
The goals is for me to being able to export either final html like:
-
or raw:
- 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.
- 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
};
- I’m getting below when I do get url from python which tells me I’m doing it wrong.
Thanks
Lucas