Fixed inline circuit editing to only work if 'circuit-schematic' is at the beginning of a line.

This commit is contained in:
Bridger Maxwell
2012-08-22 21:15:52 -04:00
parent e7732bf32f
commit 82ebc14bd6

View File

@@ -152,7 +152,7 @@ CodeMirror.defineMode("mitx_markdown", function(cmCfg, modeCfg) {
function blockNormal(stream, state) {
var match;
if (stream.match(circuitRE)) {
if (stream.sol() && stream.match(circuitRE)) {
stream.skipToEnd();
return circuit_formatter;
} else if (state.indentationDiff >= 4) {