textlane-html 0.3.0

Textlane's HTML plugins: parsing, transforms, sanitizing and serializing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use textlane_core::hast::Text;

use crate::utils::converter::state::Converter;
use crate::utils::converter::store::Converted;

/// Text.
pub(crate) fn convert_text<'a>(
    state: &mut Converter<'a, '_, '_>,
    text: &Text<'a>,
) -> Converted {
    Converted::One(state.store.add_text(text.value, text.position))
}