src/Pure/ProofGeneral/pgip_input.ML
changeset 21655 01b2d13153c8
parent 21649 40e6fdd26f82
child 21867 8750fbc28d5c
--- a/src/Pure/ProofGeneral/pgip_input.ML	Tue Dec 05 19:33:15 2006 +0100
+++ b/src/Pure/ProofGeneral/pgip_input.ML	Tue Dec 05 22:04:24 2006 +0100
@@ -206,9 +206,11 @@
    (* We allow sending proper document markup too; we map it back to dostep   *)
    (* and strip out metainfo elements. Markup correctness isn't checked: this *)
    (* is a compatibility measure to make it easy for interfaces.              *)
-   | "metainfo"	      => raise NoAction
-   | x => if (x mem PgipMarkup.markup_elements)
-	     then Dostep { text = xmltext data } (* could use Doitem too *)
+   | x => if (x mem PgipMarkup.doc_markup_elements) then
+	      if (x mem PgipMarkup.doc_markup_elements_ignored) then
+		  raise NoAction
+	      else 
+		  Dostep { text = xmltext data } (* could separate out Doitem too *)
 	  else raise Unknown) 
     handle Unknown => NONE | NoAction => NONE
 end