
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
github-markup
Advanced tools
This library is the first step of a journey that every markup file in a repository goes on before it is rendered on GitHub.com:
github-markup selects an underlying library to convert the raw markup to HTML. See the list of supported markup formats below.script tags, inline-styles, and class or id attributes.Please note that only the first step is covered by this gem — the rest happens on GitHub.com. In particular, markup itself does no sanitization of the resulting HTML, as it expects that to be covered by whatever pipeline is consuming the HTML.
Please see our contributing guidelines before reporting an issue.
The following markups are supported. The dependencies listed are required if
you wish to run the library. You can also run script/bootstrap to fetch them all.
gem install commonmarker (https://github.com/gjtorikian/commonmarker)gem install RedCloth (https://github.com/jgarber/redcloth)gem install rdoc -v 3.6.1gem install org-ruby (https://github.com/wallyqs/org-ruby)gem install creole (https://github.com/larsch/creole)gem install wikicloth (https://github.com/nricciar/wikicloth)pip install docutilsgem install asciidoctor (http://asciidoctor.org)Pod::Simple::XHTML
comes with Perl >= 5.10. Lower versions should install Pod::Simple from CPAN.gem install github-markup
or
bundle install
from this directory.
Basic form:
require 'github/markup'
GitHub::Markup.render('README.markdown', "* One\n* Two")
More realistic form:
require 'github/markup'
GitHub::Markup.render(file, File.read(file))
And a convenience form:
require 'github/markup'
GitHub::Markup.render_s(GitHub::Markups::MARKUP_MARKDOWN, "* One\n* Two")
See Contributing.
FAQs
Unknown package
We found that github-markup 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 Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.