MCPcopy Create free account
hub / github.com/daisy/MathCAT / cleanup_mathml

Function cleanup_mathml

src/interface.rs:23–28  ·  view source on GitHub ↗

wrap up some common functionality between the call from 'main' and AT

(mathml: Element)

Source from the content-addressed store, hash-verified

21
22// wrap up some common functionality between the call from 'main' and AT
23fn cleanup_mathml(mathml: Element) -> Result<Element> {
24 trim_element(&mathml);
25 let mathml = crate::canonicalize::canonicalize(mathml)?;
26 let mathml = add_ids(mathml);
27 return Ok(mathml);
28}
29
30
31thread_local!{

Callers 1

set_mathmlFunction · 0.85

Calls 3

trim_elementFunction · 0.85
canonicalizeFunction · 0.85
add_idsFunction · 0.85

Tested by

no test coverage detected