OSDN Git Service

Added LaTex image insert & edit
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / xml / XMLCleanup.java
index 3d1b280..d0d860e 100644 (file)
@@ -199,6 +199,15 @@ public class XMLCleanup {
                                node.removeChild(e);\r
                                return;\r
                        }\r
+\r
+                       // Check if we have a LaTeX image.  Remove the parent link tag\r
+                       if (enType.equalsIgnoreCase("en-latex")) {\r
+                               enType = "en-media";\r
+                               QDomNode parent = e.parentNode();\r
+                               parent.removeChild(e);\r
+                               parent.parentNode().replaceChild(e, parent);\r
+                       }\r
+\r
                        \r
                        // If we've gotten this far, we have an en-media tag\r
                        e.setTagName(enType);\r