diff --git a/src/js/simplemde.js b/src/js/simplemde.js
index <HASH>..<HASH> 100644
--- a/src/js/simplemde.js
+++ b/src/js/simplemde.js
@@ -88,6 +88,8 @@ function getState(cm, pos) {
 			ret.quote = true;
 		} else if(data === 'strikethrough') {
 			ret.strikethrough = true;
+		} else if(data === 'comment') {
+			ret.code = true;
 		}
 	}
 	return ret;
Add getState() support for code (and yes, CodeMirror intenrally labels it as "comment")