Commit 82ebc14b by Bridger Maxwell

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

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