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

Function tag

static/editor.md/lib/codemirror/mode/jade/jade.js:316–325  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

314 }
315
316 function tag(stream, state) {
317 var captures;
318 if (captures = stream.match(/^(\w(?:[-:\w]*\w)?)\/?/)) {
319 state.lastTag = captures[1].toLowerCase();
320 if (state.lastTag === 'script') {
321 state.scriptType = 'application/javascript';
322 }
323 return 'tag';
324 }
325 }
326
327 function filter(stream, state) {
328 if (stream.match(/^:([\w\-]+)/)) {

Callers 1

nextTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected