TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Markdown to HTML Parser for PHP

4 点作者 oladoyinbov超过 1 年前

2 条评论

oladoyinbov超过 1 年前
Hello World! I created a new tool to convert markdowns to html using PHP.<p>&gt; Why is this tool different from PHP ParseDown or any other markdown libraries?<p>Well, I created this tool as a wrapper of parseDown initially to fully support version php 8.x, since the parseDown library was originally built for PHP 5 and the library codebase hasn&#x27;t been updated yet till now.<p>&gt; So, what is so special about this tool?<p>I added more functionalities like converting markdown files to HTML files directly and also converting markdown contents to HTML files?<p>&lt;?php<p>use FastVolt\Helper\Markdown;<p>$markdown = Markdown::new();<p>print $markdown -&gt; setContent( &quot;## Hello World&quot; ) -&gt; toHtml(); &#x2F;&#x2F; &lt;h2&gt;Hello World&lt;&#x2F;h2&gt;<p>?&gt;<p>So Easy and Expressive!!<p>&gt; GITHUB REPO: <a href="https:&#x2F;&#x2F;github.com&#x2F;fastvolt&#x2F;markdown">https:&#x2F;&#x2F;github.com&#x2F;fastvolt&#x2F;markdown</a> (Please star and contribute to improve the project :) )
ulrischa超过 1 年前
Is there any concept for markdown to write more complex elements like a teaser or define an accordion? I like markdown but many websites need more than heading paragraphs, lists and the basic stuff.