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, @annotation&.to_html,
@chapter&.to_html, @chapter&.to_html,
@epilogue&.to_html, @epilogue&.to_html,
@footnotes_categories.any? ? "<div>\n<hr/>\n" : nil,
*@footnotes_categories.map(&:to_html), *@footnotes_categories.map(&:to_html),
@footnotes_categories.any? ? "</div>\n" : nil,
].compact.join.freeze ].compact.join.freeze
end end

View file

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