Skip to content

Commit b2230a2

Browse files
authored
Merge pull request #1529 from github/bump-commonmarker
Bump commonmark version
2 parents 4690850 + 4dc7c56 commit b2230a2

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ gem "posix-spawn", :platforms => :ruby
55
gem "redcarpet", :platforms => :ruby
66
gem "kramdown", :platforms => :jruby
77
gem "RedCloth"
8-
gem "commonmarker", "~> 0.18.1"
8+
# using a tag version here because 0.18.3 was not published by the author to encourage users to upgrade.
9+
# however we want to bump up to this version since this has a security patch
10+
gem "commonmarker", git: "https://github.com/gjtorikian/commonmarker.git", tag: "v0.18.3"
911
gem "rdoc", "~>3.6"
1012
gem "org-ruby", "= 0.9.9"
1113
gem "creole", "~>0.3.6"

HISTORY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 4.0.1 - 2022-03-07
2+
* Update to commonmarker 0.18.3; There isn't a version on RubyGems for this, so this is pointing to a [tag version on GitHub](https://github.com/gjtorikian/commonmarker/blob/v0.18.3/commonmarker.gemspec)
3+
14
## 4.0.0 - 2021-03-31
25

36
* Drop support for Python 2 in RST rendering [#1456](https://github.com/github/markup/pull/1456)

lib/github-markup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module GitHub
22
module Markup
3-
VERSION = '4.0.0'
3+
VERSION = '4.0.1'
44
Version = VERSION
55
end
66
end

test/markups/README.rst.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2>Subtitle</h2>
99
</ul>
1010
</div>
1111
<a name="header-2"></a>
12-
<h2><a href="#id1">Header 2</a></h2>
12+
<h2><a href="#toc-entry-1">Header 2</a></h2>
1313
<ol>
1414
<li>Blah blah <code>code</code> blah</li>
1515
<li>More <code>code</code>, hooray</li>
@@ -106,7 +106,7 @@ <h2><a href="#id1">Header 2</a></h2>
106106
</a>
107107
<img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
108108
<a name="field-list"></a>
109-
<h2><a href="#id2">Field list</a></h2>
109+
<h2><a href="#toc-entry-2">Field list</a></h2>
110110
<table frame="void" rules="none">
111111

112112

@@ -131,9 +131,7 @@ <h2><a href="#id2">Field list</a></h2>
131131
</tr>
132132
</tbody>
133133
</table>
134-
135134
<p><a href="mailto:[email protected]">[email protected]</a></p>
136-
137135
<p>Press <kbd>Ctrl+C</kbd> to quit</p>
138136

139-
<p><strong>RAW HTML!</strong></p> p {color:blue;}
137+
<p><strong>RAW HTML!</strong></p> p {color:blue;}

0 commit comments

Comments
 (0)