diff --git a/Gemfile b/Gemfile index ebdf8fc..1e0e192 100644 --- a/Gemfile +++ b/Gemfile @@ -32,6 +32,7 @@ gem "asciidoctor" gem "github-linguist" gem 'rexml' gem 'appsignal' +gem 'vandamme', github: 'ecosyste-ms/vandamme' group :development, :test do gem "debug", platforms: %i[ mri mingw x64_mingw ] diff --git a/Gemfile.lock b/Gemfile.lock index 6d08ab1..ce1cb08 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,11 @@ +GIT + remote: https://github.com/ecosyste-ms/vandamme.git + revision: 27c8682ca8aeb32369d74fd7357b553848df0b92 + specs: + vandamme (0.0.13) + commonmarker + github-markup + GEM remote: https://rubygems.org/ specs: @@ -330,6 +338,7 @@ DEPENDENCIES twitter-text typhoeus tzinfo-data + vandamme! web-console webmock wikicloth diff --git a/app/models/archive.rb b/app/models/archive.rb index 40bb03c..d20a2c1 100644 --- a/app/models/archive.rb +++ b/app/models/archive.rb @@ -183,6 +183,7 @@ def changelog raw: raw, html: html, plain: Nokogiri::HTML(html).try(:text), + parsed: Vandamme::Parser.new(changelog: raw).parse, extension: File.extname(changelog_file), language: language }