tmp
This commit is contained in:
parent
78ff370a4e
commit
0994541af9
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 += " — #{descr}\n"
|
||||||
|
else
|
||||||
|
result += "\n"
|
||||||
end
|
end
|
||||||
result += " — #{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|
|
||||||
|
|
Loading…
Reference in a new issue