MCPcopy Create free account
hub / github.com/TruthHun/BookStack / blankLine

Function blankLine

static/editor.md/lib/codemirror/mode/markdown/markdown.js:92–113  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

90 // Blocks
91
92 function blankLine(state) {
93 // Reset linkTitle state
94 state.linkTitle = false;
95 // Reset EM state
96 state.em = false;
97 // Reset STRONG state
98 state.strong = false;
99 // Reset strikethrough state
100 state.strikethrough = false;
101 // Reset state.quote
102 state.quote = 0;
103 if (!htmlFound && state.f == htmlBlock) {
104 state.f = inlineNormal;
105 state.block = blockNormal;
106 }
107 // Reset state.trailingSpace
108 state.trailingSpace = 0;
109 state.trailingSpaceNewLine = false;
110 // Mark this line as blank
111 state.thisLineHasContent = false;
112 return null;
113 }
114
115 function blockNormal(stream, state) {
116

Callers 1

markdown.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected