TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PHP CommonMark

54 pointsby aleemover 10 years ago

5 comments

erusevover 10 years ago
Parsedown has also been moving towards compliance with CommonMark.<p><a href="http://parsedown.org/" rel="nofollow">http:&#x2F;&#x2F;parsedown.org&#x2F;</a>
评论 #8796978 未加载
评论 #8796933 未加载
评论 #8798995 未加载
_RPMover 10 years ago
<a href="https://github.com/thephpleague/commonmark/blob/master/src/Util/ArrayCollection.php#L112" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thephpleague&#x2F;commonmark&#x2F;blob&#x2F;master&#x2F;src&#x2F;U...</a> What is the Point of abstracting away &quot;empty?&quot;
评论 #8797331 未加载
laaczover 10 years ago
Is there a need for that much of abstraction in a simple markdown parser library?
评论 #8797099 未加载
评论 #8800866 未加载
评论 #8797333 未加载
评论 #8797256 未加载
评论 #8797050 未加载
jrochkind1over 10 years ago
Aha! The controversial &quot;Standard Markdown&quot; (is that what it used to be called?) has been renamed to &quot;CommonMark&quot;, hopefully avoiding the controversy. (Controversial because Gruber didn&#x27;t like them using the Markdown name in a standardization effort).<p>I&#x27;m glad. I hope to see implementations continue to spread.
评论 #8800871 未加载
aercolinoover 10 years ago
Sorry to add a critic. If you want to make your PHP classes easy to extend, refrain from private and prefer protected. Otherwise, a developer that wants to extend one of your classes will need to also override (i.e. copy and paste) into her class all private members called from the members she really wants to override.