chunk: add len_in_chars()
@@ -82,6 +82,11 @@ impl CheckableChunk {
}
}
+ /// Obtain an accessor object containing mapping and string repr, removing the markdown anotations.
+ pub fn erase_markdown(&self) -> PlainOverlay {
+ PlainOverlay::erase_markdown(self)
+ }
+
/// Find which part of the range maps to which span.
/// Note that Range can very well be split into multiple fragments
/// where each of them can be mapped to a potentially non-continuous
