
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
a pure Ruby typographic pre-processor for HTML inspired by Typeset.js that gives you:
* Real hanging punctuation
* Soft hyphen insertion
* Optical margin outdents
* Small-caps conversion
* Punctuation substitution
* Space substitution
gem install rtypeset
Just require the typeset
gem and then call #typeset
to receive beautifully-formatted
HTML:
require 'typeset'
raw_html = <<HTM
<p>Yjarni Sigurðardóttir spoke to NATO from Iceland yesterday:
"Light of my life, fire of my florins -- my sin, my soul.
The tip of the tongue taking a trip to 118° 19' 43.5".":</p>
HTM
# Output beautifully-formatted HTML
puts Typeset.typeset(raw_html)
Want more control over your typesetting?
You can selectively disable Typeset features by passing in an options hash to #typeset
:
# Disable hyphenation and small caps conversion.
options = {:disable => [:hyphenate, :small-caps]}
Typeset.typeset(raw_html, options)
The full list of modules is: :quotes
, :hanging_punctuation
, :spaces
, :small_caps
, :hyphenate
, :ligatures
and :punctuation
.
If you're using hyphenation (it's on by default!) you may want to specify the language (the default is en_us
):
Typeset.typeset(raw_html, {:language => "en_us"})
FAQs
Unknown package
We found that rtypeset 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.