Created
September 12, 2019 04:02
-
-
Save notgull/ae4f102f3e04fcb9a13771025ce5cb19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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