From 6a0337aea925f555816abd02cf5e335bb338c299 Mon Sep 17 00:00:00 2001 From: ozakione <29860391+OzakIOne@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:00:36 +0200 Subject: [PATCH] fix: include lines in path --- .../src/remark/unusedDirectives/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts index f8097089270a..94650572e46f 100644 --- a/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts +++ b/packages/docusaurus-mdx-loader/src/remark/unusedDirectives/index.ts @@ -68,7 +68,9 @@ const plugin: Plugin = function plugin(this: Processor): Transformer { const customPath = posixPath(path.relative(process.cwd(), file.path)); - return logger.interpolate`We found a potential error in your documentation name=${unusedDirective.name} path=${customPath}:${positionMessage}`; + return logger.interpolate`We found a potential error in your documentation name=${ + unusedDirective.name + } path=${`${customPath}:${positionMessage}`}`; }) .join('\n'); logger.warn(warningMessage);