Fixed inline circuit editing to only work if 'circuit-schematic' is at the beginning of a line.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user