html2md/rewriter/
mod.rs

1pub(crate) mod anchors;
2pub(crate) mod counter;
3pub(crate) mod handle;
4pub(crate) mod iframes;
5pub(crate) mod images;
6pub(crate) mod lists;
7pub(crate) mod quotes;
8pub(crate) mod styles;
9pub mod writer;
10
11/// Insert a new line after
12#[inline]
13pub(crate) fn insert_newline_after(element: &mut lol_html::html_content::Element) {
14    element.after("\n", lol_html::html_content::ContentType::Text);
15}
16
17/// Insert a new line before
18#[inline]
19pub(crate) fn insert_newline_before(element: &mut lol_html::html_content::Element) {
20    element.before("\n", lol_html::html_content::ContentType::Text);
21}
22
23/// Insert a new line after
24#[inline]
25pub(crate) fn insert_newline_after_send(element: &mut lol_html::send::Element) {
26    element.after("\n", lol_html::html_content::ContentType::Text);
27}
28
29/// Insert a new line before
30#[inline]
31pub(crate) fn insert_newline_before_send(element: &mut lol_html::send::Element) {
32    element.before("\n", lol_html::html_content::ContentType::Text);
33}