mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-28 17:57:48 +02:00
* attempt to support html embeds in mdx with format md * refactor mdx loader + support embedding html in commonmark thanks to rehype-raw * extract processor code * refactor processor code * extract format + unit test * try to refactor processor * try to refactor processor * adjust md page * do not apply rehype-raw when format is mdx * fix lint issue
19 lines
498 B
TypeScript
Vendored
19 lines
498 B
TypeScript
Vendored
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
// modules only used in tests
|
|
|
|
declare module 'to-vfile' {
|
|
import type {VFile} from 'vfile';
|
|
|
|
export function read(path: string, encoding?: string): Promise<VFile>;
|
|
}
|
|
|
|
declare module '@testing-utils/git' {
|
|
const createTempRepo: typeof import('./utils/git').createTempRepo;
|
|
export {createTempRepo};
|
|
}
|