No description
  • Ruby 75.6%
  • Python 22%
  • Shell 1.6%
  • Perl 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
dependabot[bot] a365c64ef7
chore(deps): bump ruby/setup-ruby in the dependencies group (#2089)
Bumps the dependencies group with 1 update: [ruby/setup-ruby](https://github.com/ruby/setup-ruby).


Updates `ruby/setup-ruby` from 1.316.0 to 1.318.0
- [Release notes](https://github.com/ruby/setup-ruby/releases)
- [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb)
- [Commits](d45b1a4e94...8e41b362d2)

---
updated-dependencies:
- dependency-name: ruby/setup-ruby
  dependency-version: 1.318.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-15 04:00:47 -07:00
.github chore(deps): bump ruby/setup-ruby in the dependencies group (#2089) 2026-07-15 04:00:47 -07:00
bin github-markup: display basename instead of entire $0 2017-11-27 15:16:15 +11:00
lib Merge pull request #2081 from github/rst-auto-id-prefix 2026-07-01 13:13:04 +01:00
script Update bootstrap script to use pip3 2021-03-30 16:36:14 -05:00
test Fix RST TOC anchor ids to complete docutils 0.18 fix (#2081) (#2087) 2026-07-10 16:16:43 -07:00
.gitignore Ignore SimpleCov coverage/ output directory 2026-06-07 23:13:12 -07:00
.kick add .kick, i love it 2009-10-30 18:14:35 -07:00
CODE_OF_CONDUCT.md Add Code of Conduct 2018-08-27 16:53:04 -07:00
CONTRIBUTING.md Remove reference to deprecated support email 2022-12-29 11:30:34 -08:00
Gemfile Upgrade commonmarker to ~> 2.8.2 2026-06-07 23:59:20 -07:00
Gemfile.lock build: drop unused sanitize gem dev dependency 2026-06-08 20:01:55 -07:00
github-markup.gemspec build: drop unused sanitize gem dev dependency 2026-06-08 20:01:55 -07:00
HISTORY.md fix: complete changelog and pin actions/stale to SHA 2026-05-04 17:31:35 -07:00
LICENSE license 2009-10-30 18:17:47 -07:00
Rakefile Restore "test" as the default rake task 2015-01-16 10:37:02 -05:00
README.md Merge pull request #1703 from TAbdiukov/MarkupLink 2024-09-09 07:28:46 -05:00

GitHub Markup

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:

  1. github-markup selects an underlying library to convert the raw markup to HTML. See the list of supported markup formats below.
  2. The HTML is sanitized, aggressively removing things that could harm you and your kin—such as script tags, inline-styles, and class or id attributes.
  3. Syntax highlighting is performed on code blocks. See github/linguist for more information about syntax highlighting.
  4. The HTML is passed through other filters that add special sauce, such as emoji, task lists, named anchors, CDN caching for images, and autolinking.
  5. The resulting HTML is rendered on GitHub.com.

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.

Markups

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.

Installation

gem install github-markup

or

bundle install

from this directory.

Usage

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")

Local Development

python3 -m venv .venv
source .venv/bin/activate
cd script
./bootstrap

Contributing

See Contributing.