fbmarkdown
fbmarkdown copied to clipboard
Pure-Hack implementation of GitHub Flavored Markdown, based on the specification at https://github.github.com/gfm/
fixes #1 fixes #14 Fixes: - Remove dead fixmes. - Lint with hhast lint. - Introduces IRenderer for covariant handling of Renderer. - Introduces HTMLXHPRenderer to render straight to XHP....
continuing #7 changes; - setters have been removed. - extension has been renamed to plugin, as extension has been used previously to describe render filters, this ensures there's no confusion...
These are a new feature in GFM, described in v0.29-gfm2 of https://github.com/github/cmark-gfm , though not yet on the main website for the GFM spec.
- [ ] provide a way to whitelist URI schemes; for example, http, https, mailto, irc are likely fine, javascript is not. This should affect links, link reference definitions, and...
It's pretty reasonable to attempt parsing any text as markdown; right now, this will lead to request-level limits such as memory or time. It'd be better to support a complexity...
Currently doesn't as the code is namespaced, and XHP was unusable in namespaces until recently.