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

Function getLineContent

static/editor.md/lib/codemirror/lib/codemirror.js:915–923  ·  view source on GitHub ↗
(cm, lineView)

Source from the content-addressed store, hash-verified

913 // Wrapper around buildLineContent which will reuse the structure
914 // in display.externalMeasured when possible.
915 function getLineContent(cm, lineView) {
916 var ext = cm.display.externalMeasured;
917 if (ext && ext.line == lineView.line) {
918 cm.display.externalMeasured = null;
919 lineView.measure = ext.measure;
920 return ext.built;
921 }
922 return buildLineContent(cm, lineView);
923 }
924
925 // Redraw the line's text. Interacts with the background and text
926 // classes because the mode may output tokens that influence these

Callers 2

updateLineTextFunction · 0.70
buildLineElementFunction · 0.70

Calls 1

buildLineContentFunction · 0.70

Tested by

no test coverage detected