Optional heading separator lines

pull/187/head
M66B 4 years ago
parent 2797c050fc
commit 3ef1cb233f

@ -753,8 +753,16 @@ public class HtmlHelper {
} }
// Replace headings // Replace headings
if (!text_size) Elements hs = document.select("h1,h2,h3,h4,h5,h6");
document.select("h1,h2,h3,h4,h5,h6").tagName("strong"); if (text_size) {
if (text_separators && view)
for (Element h : hs)
h.appendElement("hr")
.attr("x-block", "true");
else
hs.attr("x-line-after", "true");
} else
hs.tagName("strong");
// Paragraphs // Paragraphs
for (Element p : document.select("p")) { for (Element p : document.select("p")) {

Loading…
Cancel
Save