提交 7cc87833 编写于 作者: J Johannes Rieken

trim MD headings syntax from outline element

上级 adc8c296
......@@ -360,7 +360,7 @@ class NotebookCellOutline implements IOutline<OutlineEntry> {
// find first none empty line or use default text
const lineMatch = content.match(/^.*\w+.*\w*$/m);
const preview = lineMatch ? lineMatch[0].trim() : localize('empty', "empty cell");
const preview = lineMatch ? lineMatch[0].trim().replace(/^[ \t]*(\#+)/, '') : localize('empty', "empty cell");
let level = 7;
if (isMarkdown) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册