mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
[7x_backport] Add link conversion from Markdown to AsciiDoctor (#11508)
Backport of #11508 to convert links from Markdown to AsciiDoctor while generating release notes.
This commit is contained in:
parent
018550f863
commit
6c50eda135
1 changed files with 1 additions and 0 deletions
|
@ -97,6 +97,7 @@ plugin_changes.each do |plugin, versions|
|
|||
next if line.match(/^##/)
|
||||
line.gsub!(/^\+/, "")
|
||||
line.gsub!(/ #(?<number>\d+)\s*$/, " https://github.com/logstash-plugins/#{plugin}/issues/\\k<number>[#\\k<number>]")
|
||||
line.gsub!(/\[#(?<number>\d+)\]\((?<url>[^)]*)\)/, "\\k<url>[#\\k<number>]")
|
||||
line.gsub!(/^\s+-/, "*")
|
||||
report << line
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue