+
+
+class M(WLElement):
+ STRIP = True
+
+
+class MRow(M):
+ pass
+
+
+class MFenced(M):
+ TXT_PREFIX = '('
+ TXT_SUFFIX = ')'
+
+
+class MFrac(M):
+ TXT_PREFIX = '('
+ TXT_SUFFIX = ')'
+
+ def txt_after_child(self, builder, child_count):
+ if child_count:
+ builder.push_text(') / (')
+
+
+class MSup(M):
+ def txt_after_child(self, builder, child_count):
+ if child_count:
+ builder.push_text(' ^ ')