fix(mdx-loader): get correct error line numbers, handle front matter + contentTitle with remark (#9386)

This commit is contained in:
Sébastien Lorber 2023-10-09 14:55:09 +02:00 committed by GitHub
parent 35441b38e4
commit d86aa0da5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 617 additions and 24 deletions

View file

@ -17,7 +17,7 @@ import type {Heading, Literal} from 'mdast';
import type {Transformer} from 'unified';
// TODO as of April 2023, no way to import/re-export this ESM type easily :/
// This might change soon, likely after TS 5.2
// TODO upgrade to TS 5.3
// See https://github.com/microsoft/TypeScript/issues/49721#issuecomment-1517839391
// import type {Plugin} from 'unified';
type Plugin = any; // TODO fix this asap