gitlab-markup 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +1 -1
- data/HISTORY.md +4 -0
- data/README.md +5 -5
- data/lib/github-markup.rb +1 -1
- data/lib/github/commands/rest2html +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f0aa41cafcce3bcff7708eb2abdcd0ebae4e52d
|
4
|
+
data.tar.gz: 2f1468ba406229aa02948659e50f6762663e13de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6faf5dedea288a6f1a9e5a75d4dbffc00a6d78f3db73c6eb9322ec8a905e227b8a2fc2cad2965c4f63c869d94391fa6ae5f1a675cd48d740819e91fe65fbe69a
|
7
|
+
data.tar.gz: 73733eb15a10462c999f1b177117da1aef36b2a2b7ab06daabc2ec64b4e5a87dce16b41a21aa9e3a1df3252b3ca3e496abdc09d01e2daa748a15f3209a08fd57
|
data/.gitlab-ci.yml
CHANGED
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
|
1
|
+
GitLab Markup
|
2
2
|
=============
|
3
3
|
|
4
4
|
[![build status](https://gitlab.com/gitlab-org/gitlab-markup/badges/master/build.svg)](https://gitlab.com/gitlab-org/gitlab-markup/commits/master)
|
5
5
|
|
6
|
-
This library is
|
6
|
+
This library is a fork of GitHub Markup, which is used to render all non Markdown markups:
|
7
7
|
|
8
8
|
0. This library converts the raw markup to HTML. See the list of [supported markup formats](#markups) below.
|
9
9
|
0. 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. See the [sanitization filter](https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/sanitization_filter.rb) for the full whitelist.
|
10
10
|
0. Syntax highlighting is performed on code blocks. See [github/linguist](https://github.com/github/linguist#syntax-highlighting) for more information about syntax highlighting.
|
11
11
|
0. The HTML is passed through other filters in the [html-pipeline](https://github.com/jch/html-pipeline) that add special sauce, such as [emoji](https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/emoji_filter.rb), [task lists](https://github.com/github/task_list/blob/master/lib/task_list/filter.rb), [named anchors](https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/toc_filter.rb), [CDN caching for images](https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/camo_filter.rb), and [autolinking](https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/autolink_filter.rb).
|
12
|
-
0. The resulting HTML is rendered
|
12
|
+
0. The resulting HTML is rendered.
|
13
13
|
|
14
14
|
Please see our [contributing guidelines](CONTRIBUTING.md) before reporting an issue.
|
15
15
|
|
@@ -25,7 +25,7 @@ you wish to run the library. You can also run `script/bootstrap` to fetch them a
|
|
25
25
|
* [.org](http://orgmode.org/) -- `gem install org-ruby`
|
26
26
|
* [.creole](http://wikicreole.org/) -- `gem install creole`
|
27
27
|
* [.mediawiki, .wiki](http://www.mediawiki.org/wiki/Help:Formatting) -- `gem install wikicloth`
|
28
|
-
* [.rst](http://docutils.sourceforge.net/rst.html) -- `
|
28
|
+
* [.rst](http://docutils.sourceforge.net/rst.html) -- `pip install docutils==0.13.1`
|
29
29
|
* [.asciidoc, .adoc, .asc](http://asciidoc.org/) -- `gem install asciidoctor` (http://asciidoctor.org)
|
30
30
|
* [.pod](http://search.cpan.org/dist/perl/pod/perlpod.pod) -- `Pod::Simple::HTML`
|
31
31
|
comes with Perl >= 5.10. Lower versions should install [Pod::Simple](http://search.cpan.org/~dwheeler/Pod-Simple-3.28/lib/Pod/Simple.pod) from CPAN.
|
@@ -34,7 +34,7 @@ Installation
|
|
34
34
|
-----------
|
35
35
|
|
36
36
|
```
|
37
|
-
gem install
|
37
|
+
gem install gitlab-markup
|
38
38
|
```
|
39
39
|
|
40
40
|
Usage
|
data/lib/github-markup.rb
CHANGED
@@ -142,9 +142,9 @@ class GitHubHTMLTranslator(HTMLTranslator):
|
|
142
142
|
|
143
143
|
# toss off `object` tag
|
144
144
|
self.body.pop()
|
145
|
-
|
145
|
+
# add on `img` with attributes
|
146
146
|
self.body.append(self.starttag(node, 'img', **atts))
|
147
|
-
|
147
|
+
HTMLTranslator.depart_image(self, node)
|
148
148
|
|
149
149
|
|
150
150
|
def kbd(name, rawtext, text, lineno, inliner, options=None, content=None):
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-markup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01
|
11
|
+
date: 2017-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|