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

Function endplugin

static/editor.md/lib/codemirror/mode/tiki/tiki.js:250–260  ·  view source on GitHub ↗
(startOfLine)

Source from the content-addressed store, hash-verified

248}
249
250function endplugin(startOfLine) {
251 return function(type) {
252 if (
253 type == "selfclosePlugin" ||
254 type == "endPlugin"
255 )
256 return cont();
257 if (type == "endPlugin") {pushContext(curState.pluginName, startOfLine); return cont();}
258 return cont();
259 };
260}
261
262function endcloseplugin(err) {
263 return function(type) {

Callers 1

elementFunction · 0.85

Calls 2

contFunction · 0.70
pushContextFunction · 0.70

Tested by

no test coverage detected