I'm using empty.html downloaded 2 days ago on Windows 10. The following is my problem.
- Input in Tiddler: <<Q "2:2">> /* Macro call for Quran chapter 2 verse 2 */ - Current Output: http://api.alquran.cloud/v1/ayah/2:2/en.asad - Desired Output: "This is the Book - wherein there be no doubt about it is [meant to be] a guidance for all the God-conscious." (The actual verse 2:2 instead of just the link) I am using the following code adapted from Tobias Beer's sample in my Macro. (function(){ "use strict"; exports.name = "Q"; exports.params = [ { name: "input" } ]; exports.run = function(input) { var url = "http://api.alquran.cloud/v1/ayah/"+input+"/en.asad"; return url; }; })(); How can I convert the following HTML code (which can display the verse but not practical in the Tiddler) into Javascript Macro code above to display the actual verse instead of just the link: async function f() { let response = await fetch("http://api.alquran.cloud/v1/ayah/2:2/en.asad"); let json = await response.json(); let translation = await json['data'].text; } The sample site at https://qoran.netlify.app/. Thank you and appreciate the help. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/255186d7-5ce1-482b-ac38-a216c11fae08n%40googlegroups.com.

