Add heasdingStyle atx option (#12286) (#12338)

This commit is contained in:
Chris LaFreniere
2020-09-15 22:50:46 -07:00
committed by GitHub
parent 403ff6cfec
commit dd9ac2e362

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', {