MCPcopy Index your code
hub / github.com/hackmdio/codimd / checkInIndentCode

Function checkInIndentCode

public/js/index.js:3036–3041  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3034}
3035
3036function checkInIndentCode () {
3037 // if line starts with tab or four spaces is a code block
3038 var line = editor.getLine(editor.getCursor().line)
3039 var isIndentCode = ((line.substr(0, 4) === ' ') || (line.substr(0, 1) === '\t'))
3040 return isIndentCode
3041}
3042
3043var isInCode = false
3044

Callers 2

checkInCodeFunction · 0.85
checkInContainerFunction · 0.85

Calls 1

getLineMethod · 0.80

Tested by

no test coverage detected