Add markdown cell to Notebook (#3014)

* add markdown cell

* add markdown preview for Notebook

* formatting

* address comment
This commit is contained in:
Abbie Petchtes
2018-10-26 16:20:06 -07:00
committed by GitHub
parent 2859bee4c0
commit 533f2734f1
15 changed files with 162 additions and 19 deletions

View File

@@ -38,7 +38,10 @@ export class NotebookComponent extends AngularDisposable implements OnInit {
let cell2: ICellModel = {
id: '2', language: 'sql', source: 'select 1', cellType: CellTypes.Code, active: false
};
this.cells.push(cell1, cell2);
let cell3: ICellModel = {
id: '3', language: 'markdown', source: '## This is test!', cellType: CellTypes.Markdown, active: false
};
this.cells.push(cell1, cell2, cell3);
}
ngOnInit() {