(file: MDFile, options: CompileOptions)
| 49 | } |
| 50 | |
| 51 | export async function parsedJS(file: MDFile, options: CompileOptions) { |
| 52 | const result = await compile(file, { |
| 53 | ...options, |
| 54 | outputFormat: "function-body", |
| 55 | jsx: false, |
| 56 | }) |
| 57 | const { default: Content } = await run( |
| 58 | result, |
| 59 | (options.development ? devRuntime : runtime) as any, |
| 60 | ) |
| 61 | const block = parse(Content) |
| 62 | return { block } |
| 63 | } |
| 64 | |
| 65 | export async function renderHTML( |
| 66 | file: MDFile, |
searching dependent graphs…