From 49744cf9846cf18f0f18868483cc0a0fc75263d0 Mon Sep 17 00:00:00 2001 From: Evgeny Lupanov Date: Thu, 26 Mar 2020 10:06:53 +0300 Subject: [PATCH] fix(docs): md files to text conversion --- docs/app/@theme/services/structure.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/app/@theme/services/structure.service.ts b/docs/app/@theme/services/structure.service.ts index 7625106b..d32f3fa2 100644 --- a/docs/app/@theme/services/structure.service.ts +++ b/docs/app/@theme/services/structure.service.ts @@ -56,7 +56,8 @@ export class NgxStructureService { } if (item.block === 'markdown') { - item.children = this.textService.mdToSectionsHTML(require(`raw-loader!../../../articles/${item.source}`)); + item.children = this.textService.mdToSectionsHTML( + require(`raw-loader!../../../articles/${item.source}`).default); } if (item.children) {