如何使markdown.js在Delphi中的TWebBrowser中以HTML形式显示标记文档?
给定包含Markdown的字符串的内容,如何使markdown.js将标记转换为HTML,并在TWebBrowser组件中显示该HTML,所有这些都在我的Delphi桌面应用程序中?
更新:
如果我只是简单地这样做的话(谢谢你,惠特!)
procedure TForm2.Button1Click(Sender: TObject);
begin
WebBrowser1.Navigate('file://C:/junk/markdown/lib/markdown.js');
en
我正在用我的代码得到惠特的预测。我也想得到时间。我怎么才能有时间呢?
我的代码:
function Get() {
var txtCity = document.getElementById("txtCity").value;
var weather = new XMLHttpRequest();
weather.open("GET", "http://api.wunderground.com/api/df3f2ab5e1db8f97/conditions/q/"+txtCi