GitXplorerGitXplorer
g

markup

public
5882 stars
3401 forks
76 issues

Commits

List of commits on branch master.
Verified
6f4f436f14eae59df8561c532afe42c46ec4b323

Merge pull request #1903 from github/jm_immutable_actions

jjmeridth committed 2 months ago
Verified
9362a5204fd1551e692b5d9c7a44b70b9e5d4374

fix: switch from shas to tags for immutable actions

jjmeridth committed 2 months ago
Verified
c8e77969029eca79931faf8bea5cc036122a4f46

Merge pull request #1902 from github/jm_exclude_keep_label_from_stale

jjmeridth committed 2 months ago
Verified
eed8f53691db84d1788fd142c9235bb6b8379b76

chore: add keep label to mark issues/prs from being marked as stale

jjmeridth committed 2 months ago
Verified
c256c3218e5b56d144a37c87b53817069d69a3bf

Merge pull request #1899 from github/dependabot/github_actions/dependencies-c430e8e6da

jjmeridth committed 2 months ago
Verified
cec16df50930cfd7870f6addab2e0acdaedb41f1

chore(deps): bump ruby/setup-ruby in the dependencies group

ddependabot[bot] committed 2 months ago

README

The README file for this repository.

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.