You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The notebookOutlineEntryFactory.ts handles markdown headers with HTML tags, but not other parts (such as collapsing mardown header cells, see foldingModel.ts).
constfullContent=cell.getText().substring(0,10000);for(const{ depth, text }ofgetMarkdownHeadersInCell(fullContent)){hasHeader=true;entries.push(newOutlineEntry(index++,depth,cell,text,false,false));}if(!hasHeader){// no markdown syntax headers, try to find html tagsconstmatch=fullContent.match(/<h([1-6]).*>(.*)<\/h\1>/i);if(match){hasHeader=true;constlevel=parseInt(match[1]);consttext=match[2].trim();entries.push(newOutlineEntry(index++,level,cell,text,false,false));}}
Thus, if we have HTML tags for outline headers, then we do not render collapsible regions in markdown for such headers.
Not sure if this is a bug or not, but filing this here,
Feel free to close this if this is invalid.
The text was updated successfully, but these errors were encountered:
Good catch, I'll see about unifying that behavior. We should likely just support html tags in the folding model. Might've just been an oversight way back when this was written and didn't grab the updates with the outlineEntryFactory.
The
notebookOutlineEntryFactory.ts
handles markdown headers with HTML tags, but not other parts (such as collapsing mardown header cells, seefoldingModel.ts
).Thus, if we have HTML tags for outline headers, then we do not render collapsible regions in markdown for such headers.
Not sure if this is a bug or not, but filing this here,
Feel free to close this if this is invalid.
The text was updated successfully, but these errors were encountered: