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,
|
||||
@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
|
||||
|
||||
|
|
|
@ -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 += " — #{descr}\n"
|
||||
else
|
||||
result += "\n"
|
||||
end
|
||||
result += " — #{descr}\n" if descr
|
||||
if alt_urls&.any?
|
||||
result += %[(#{
|
||||
alt_urls.map do |alt_url|
|
||||
|
|
Loading…
Reference in a new issue