Commit ee07a537 by Bridger Maxwell

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

parent 7af68b23
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment