doubi5520 2012-08-15 04:24
浏览 86
已采纳

PHP Markdown Extra - 链接无法解析

So I have a site that uses the PHP Markdown Extra extension (with added support for Github Flavored Markdown) and up until recently everything worked fine. However today I noticed both on my live server and my local environment that Markdown was not rendering the link syntax in HTML.

So this is more or less what I was getting with every file.

"<p>[link](http://kellybecker.me)</p>" === Markdown("[link](http://kellybecker.me)");

I don't know why this is happening and I can't find any other instance of this happening anywhere with this library, and I could not find another library that was just as good.

If anyone could give me any tips to why this is happening that would be wonderful. The source code for the markdown parser is at https://github.com/EvolutionSDK/EvolutionSDK/tree/master/bundles/markdown and an example of this happening on a live site is http://youmacon.com (hopefully by the time you look at the live site example it will be fixed).

Could this have something to do with me running the framework out of a Phar?

  • 写回答

1条回答 默认 最新

  • dourang20110122 2012-08-23 17:20
    关注

    Turns out the issue was that PHP Markdown cannot run properly in a namespace. When I removed the namespace the issue went away. (Weird) I'll look into that later and maybe submit a pull request.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题