Module:Citation/CS1/COinS: Difference between revisions
no edit summary
m>Trappist the monk No edit summary |
m>Trappist the monk No edit summary |
||
Line 118: | Line 118: | ||
if not rendering then -- when value doesn't have a math stripmarker, abandon this test | if not rendering then -- when value doesn't have a math stripmarker, abandon this test | ||
-- return 'not rendering'; | |||
return value; | |||
end | end | ||
Line 129: | Line 129: | ||
rendering = rendering:match ('$%s+(.+)%s+%$') -- extract just the math text | rendering = rendering:match ('$%s+(.+)%s+%$') -- extract just the math text | ||
elseif rendering:match ('<annotation[^>]+>.+</annotation>') then -- if MathML math option | elseif rendering:match ('<annotation[^>]+>.+</annotation>') then -- if MathML math option | ||
rendering:match ('<annotation[^>]+>(.+)</annotation>') | rendering = rendering:match ('<annotation[^>]+>(.+)</annotation>') -- extract just the math text | ||
else | else | ||
return value; -- had math stripmarker but not one of the three defined forms | return value; -- had math stripmarker but not one of the three defined forms |