2017-05-14 118 views
0

我正在写一些简单的markdown,它在测试窗口中正确显示,但在Facebook Messenger中呈现时没有渲染。Markdown not render in messenger

这就是显示纯文本的使者,而不是标题文本

# This Is The Heading # 

而这就是显示在信使纯文本中的粗体文字

*Bold Stuff*  

这是代码我正在使用。正如我所说的,它在测试窗口中工作正常。从craigjensen

StringBuilder sb = new StringBuilder(); 
    sb.AppendLine("# This Is The Heading \n\n"); 
    sb.AppendLine("Some text \n\n"); 
    sb.AppendLine("**Bold Stuff** \n\n"); 
    sb.AppendLine("more text \n\n"); 

    IMessageActivity reply = context.MakeMessage(); 
    reply.Text = sb.ToString(); 
    context.PostAsync(reply); 

回答