gitlab-markup 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e39759bc75e97e0a647c07b7338cb29dc078f47
4
- data.tar.gz: dbcba55af52064b81b448993b5f54fb28da5f3e2
3
+ metadata.gz: 5f0aa41cafcce3bcff7708eb2abdcd0ebae4e52d
4
+ data.tar.gz: 2f1468ba406229aa02948659e50f6762663e13de
5
5
  SHA512:
6
- metadata.gz: a4c1466f198b6c1bbc6316971b296b153a7108cdbb7316568a85da9b0a9bb22e5cb62296cfbda475c8be70562cdb446d0efc10a48f5566fda1aa0cfd37369173
7
- data.tar.gz: 6ef4034ab4ab96182762231c16085b52deb40a8a713c95f77e06328f752db49c76ff057a8f47eaf01e67942d73c10c6f0ce3800fc4dc0e4636a62c3d8dc96422
6
+ metadata.gz: 6faf5dedea288a6f1a9e5a75d4dbffc00a6d78f3db73c6eb9322ec8a905e227b8a2fc2cad2965c4f63c869d94391fa6ae5f1a675cd48d740819e91fe65fbe69a
7
+ data.tar.gz: 73733eb15a10462c999f1b177117da1aef36b2a2b7ab06daabc2ec64b4e5a87dce16b41a21aa9e3a1df3252b3ca3e496abdc09d01e2daa748a15f3209a08fd57
@@ -8,7 +8,7 @@ variables:
8
8
  before_script:
9
9
  - apt update
10
10
  - apt install python-pip git build-essential -y
11
- - pip install 'docutils==0.12'
11
+ - pip install 'docutils==0.13.1'
12
12
  - bundle install --jobs $(nproc)
13
13
  script:
14
14
  - bundle exec rake test
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.6.0
2
+
3
+ * Updated docutils support (now requires 0.13.1)
4
+
1
5
  ## 1.5.1 (2017-01-09)
2
6
 
3
7
  * Disable rendering from `.. raw::` content block
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
- GitHub Markup
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 the first step of a journey that every markup file in a repository goes on before it is rendered on GitHub.com:
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 on GitHub.com.
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) -- `easy_install docutils`
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 github-markup
37
+ gem install gitlab-markup
38
38
  ```
39
39
 
40
40
  Usage
@@ -1,6 +1,6 @@
1
1
  module GitHub
2
2
  module Markup
3
- VERSION = '1.5.1'
3
+ VERSION = '1.6.0'
4
4
  Version = VERSION
5
5
  end
6
6
  end
@@ -142,9 +142,9 @@ class GitHubHTMLTranslator(HTMLTranslator):
142
142
 
143
143
  # toss off `object` tag
144
144
  self.body.pop()
145
- # add on `img` with attributes
145
+ # add on `img` with attributes
146
146
  self.body.append(self.starttag(node, 'img', **atts))
147
- self.body.append(self.context.pop())
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.5.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-09 00:00:00.000000000 Z
11
+ date: 2017-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport