This commit is contained in:
Alex Kotov 2024-09-12 06:01:41 +04:00
parent 78ff370a4e
commit 0994541af9
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 9 additions and 3 deletions

View file

@ -33,7 +33,9 @@ module Repubmark
@annotation&.to_html,
@chapter&.to_html,
@epilogue&.to_html,
@footnotes_categories.any? ? "<div>\n<hr/>\n" : nil,
*@footnotes_categories.map(&:to_html),
@footnotes_categories.any? ? "</div>\n" : nil,
].compact.join.freeze
end

View file

@ -39,11 +39,15 @@ module Repubmark
result += "</span>\n"
end
end
result += %(<a href="#{url}">#{text}</a>\n)
result += %(<a href="#{url}">#{text}</a>)
else
result += %(#{text}\n)
result += text
end
if descr
result += " &mdash; #{descr}\n"
else
result += "\n"
end
result += " &mdash; #{descr}\n" if descr
if alt_urls&.any?
result += %[(#{
alt_urls.map do |alt_url|