
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
lesstile
Advanced tools
= Lesstile
Converts text formatted with an exceedingly simple markup language into valid HTML (iron clad guarantee!) - perfect for comments on your blog. Textile isn't good for this because not only does it do too much (do commenters really need subscript?), but it can also output invalid HTML (try a tag over multiple lines...). Whitelisting HTML is another option, but you still need some sort of parsing if you want syntax highlighting.
Integrates with CodeRay for sexy syntax highlighting.
== Synopsis
comment = <<-EOS "Ego Link":http://rhnh.net Wow, this post is awesome. I'd implement it like this:
EOS
Lesstile.format_as_html(comment) Lesstile.format_as_html(comment, :code_formatter => Lesstile::CodeRayFormatter) # Requires coderay Lesstile.format_as_html(comment, :code_formatter => lambda {|code, lang| "Code in #{lang}: #{code}" })
Lesstile.format_as_xhtml(comment)
== Status
Lesstile is used by the enki blogging engine, which has many production deployments. The current release is 1.0.0 and considered stable.
== Requirements
Provides a CodeRay syntax highlighter, but you need to have the gem installed to use it.
gem install coderay
== Install
Pick one:
sudo gem install lesstile # gem install git clone git://github.com/xaviershay/lesstile.git # go from source
Tested on 1.8.7-p302, 1.9.2-p0, jruby 1.5.1, and rbx 1.1
FAQs
Unknown package
We found that lesstile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookie’s npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.