Skip to content

Commit

Permalink
Switch to GitHub Flavored Markdown dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
apjanke committed Jul 16, 2020
1 parent 3be5a4c commit 6ca77c0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
PATH
remote: .
specs:
ronn-ng (0.9.1)
ronn-ng (0.10.0.pre.SNAPSHOT)
kramdown (~> 2.1)
kramdown-parser-gfm (~> 1.0.1)
mustache (~> 1.0)
nokogiri (~> 1.9, >= 1.9.0)

Expand All @@ -12,6 +13,8 @@ GEM
ast (2.4.1)
kramdown (2.3.0)
rexml
kramdown-parser-gfm (1.0.1)
kramdown (~> 2.0)
mini_portile2 (2.4.0)
mustache (1.1.1)
mustermann (1.1.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/ronn.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ def self.revision
# value generated by: rake rev
# or edit manually; I'm not sure of how rake rev interacts with git
# tags -apjanke
REV = '0.9.1'.freeze
REV = '0.10.0-SNAPSHOT'.freeze
VERSION = version
end
6 changes: 5 additions & 1 deletion lib/ronn/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ def preprocess!
end

def input_html
@input_html ||= strip_heading(Kramdown::Document.new(markdown, auto_ids: false,
@input_html ||= strip_heading(Kramdown::Document.new(markdown,
auto_ids: false,
input: 'GFM',
hard_wrap: 'false',
syntax_highlighter_opts: 'line_numbers: false',
smart_quotes: ['apos', 'apos', 'quot', 'quot'],
typographic_symbols: { hellip: '...', ndash: '--', mdash: '--' }).to_html)
end
Expand Down
11 changes: 6 additions & 5 deletions ronn-ng.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Gem::Specification.new do |s|
s.name = 'ronn-ng'
s.version = '0.9.1'
s.date = '2020-04-09'
s.version = '0.10.0-SNAPSHOT'
s.date = '2020-07-13'

s.summary = 'Builds man pages from Markdown'
s.description = 'Ronn-NG builds manuals in HTML and Unix man page format from Markdown.'
Expand Down Expand Up @@ -110,9 +110,10 @@ Gem::Specification.new do |s|
s.test_files = s.files.select { |path| path =~ /^test\/.*_test.rb/ }

s.extra_rdoc_files = %w[LICENSE.txt AUTHORS]
s.add_dependency 'kramdown', '~> 2.1'
s.add_dependency 'mustache', '~> 1.0'
s.add_dependency 'nokogiri', '~> 1.9', '>= 1.9.0'
s.add_dependency 'kramdown', '~> 2.1'
s.add_dependency 'kramdown-parser-gfm', '~> 1.0.1'
s.add_dependency 'mustache', '~> 1.0'
s.add_dependency 'nokogiri', '~> 1.9', '>= 1.9.0'
s.add_development_dependency 'rack', '~> 2.0', '>= 2.0.6'
s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.0'
s.add_development_dependency 'rubocop', '~> 0.60', '>= 0.57.1'
Expand Down

0 comments on commit 6ca77c0

Please sign in to comment.