diff --git a/Gemfile.lock b/Gemfile.lock index c385ab0..aaec3b4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -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) diff --git a/lib/ronn.rb b/lib/ronn.rb index 6e2c4be..781a01c 100755 --- a/lib/ronn.rb +++ b/lib/ronn.rb @@ -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 diff --git a/lib/ronn/document.rb b/lib/ronn/document.rb index bc6ecf5..fbf36cc 100644 --- a/lib/ronn/document.rb +++ b/lib/ronn/document.rb @@ -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 diff --git a/ronn-ng.gemspec b/ronn-ng.gemspec index a476c70..188faf0 100644 --- a/ronn-ng.gemspec +++ b/ronn-ng.gemspec @@ -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.' @@ -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'