Add heasdingStyle atx option (#12286)

This commit is contained in:
Chris LaFreniere
2020-09-14 18:31:11 -07:00
committed by GitHub
parent 8d76985276
commit e75b3d69f6

View File

@@ -432,7 +432,7 @@ export class TextCellComponent extends CellView implements OnInit, OnChanges {
}
private setTurndownOptions() {
this.turndownService = new TurndownService({ 'emDelimiter': '_', 'bulletListMarker': '-' });
this.turndownService = new TurndownService({ 'emDelimiter': '_', 'bulletListMarker': '-', 'headingStyle': 'atx' });
this.turndownService.keep(['u', 'mark']);
this.turndownService.use(turndownPluginGfm.gfm);
this.turndownService.addRule('pre', {