GitLab steht aufgrund wichtiger Wartungsarbeiten am Montag, den 8. März, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Removes redundant call to parse markdown

parent 6066864e
......@@ -105,7 +105,7 @@ export class LivePreviewComponent implements OnInit, OnDestroy {
public ngOnInit(): void {
this.questionTextService.eventEmitter.pipe(takeUntil(this._destroy)).subscribe(value => {
this.dataSource = Array.isArray(value) ? value : [this.markdownService.parseGithubFlavoredMarkdown(value)];
this.dataSource = Array.isArray(value) ? value : [value];
});
const questionIndex$ = this.route.paramMap.pipe(map(params => parseInt(params.get('questionIndex'), 10)), distinctUntilChanged(),
takeUntil(this._destroy));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment