lib/LaTeXML/Post/MathML/Content.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
convertNode
2.0
rawIDSuffix
2.0
canConvert
2.0
CRAP 2.0
1 # /=====================================================================\ #
2 # | LaTeXML::Post::MathML::Content | #
3 # | MathML generator for LaTeXML | #
4 # |=====================================================================| #
5 # | Part of LaTeXML: | #
6 # | Public domain software, produced as part of work done by the | #
7 # | United States Government & not subject to copyright in the US. | #
8 # |---------------------------------------------------------------------| #
9 # | Bruce Miller <bruce.miller@nist.gov> #_# | #
10 # | http://dlmf.nist.gov/LaTeXML/ (o o) | #
11 # \=========================================================ooo==U==ooo=/ #
12  
13 package LaTeXML::Post::MathML::Content;
14 use strict;
15 use warnings;
16 use base qw(LaTeXML::Post::MathML);
17  
18 sub convertNode {
19 my ($self, $doc, $xmath) = @_;
20 return { processor => $self, xml => $self->cmml_top($xmath),
21 mimetype => 'application/mathml-content+xml' }; }
22  
23 sub rawIDSuffix {
24 return '.cmml'; }
25  
26 sub canConvert {
27 my ($self, $doc, $math) = @_;
28 return LaTeXML::Post::MathProcessor::mathIsParsed($doc, $math); }
29  
30 #================================================================================
31 1;