Skip to content

Instantly share code, notes, and snippets.

@notgull
Created September 12, 2019 04:02
Show Gist options
  • Save notgull/ae4f102f3e04fcb9a13771025ce5cb19 to your computer and use it in GitHub Desktop.
Save notgull/ae4f102f3e04fcb9a13771025ce5cb19 to your computer and use it in GitHub Desktop.
export async function get_markdown(url: string, src: string, metadata: any): Promise<string> {
let page_info: PageInfo = {
title: metadata.title,
alt_title: "",
header: null,
subheader: null,
rating: metadata.rating,
tags: metadata.tags,
};
let response = await client.request("render", [page_info, src]);
console.log("Received response: " + JSON.stringify(response));
return response;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment